member model is modified
This commit is contained in:
parent
cb39f9014c
commit
e7ae83912a
|
@ -36,10 +36,7 @@ import { CasinoService } from '../services/casino.service';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { ListBettingHistoryResponse } from 'app/modules/proto/c2se/api/betting_pb';
|
import { ListBettingHistoryResponse } from 'app/modules/proto/c2se/api/betting_pb';
|
||||||
import { BettingHistoryModel } from 'app/modules/proto/models/api/betting_pb';
|
import { BettingHistoryModel } from 'app/modules/proto/models/api/betting_pb';
|
||||||
import {
|
import { MemberModel } from 'app/modules/proto/models/member_pb';
|
||||||
MemberModel,
|
|
||||||
ParentMemberModel,
|
|
||||||
} from 'app/modules/proto/models/member_pb';
|
|
||||||
import { ListMembersResponse } from 'app/modules/proto/c2se/member_pb';
|
import { ListMembersResponse } from 'app/modules/proto/c2se/member_pb';
|
||||||
import { environment } from 'environments/environment';
|
import { environment } from 'environments/environment';
|
||||||
|
|
||||||
|
@ -283,7 +280,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
const isBaccarat = gameType.includes('baccarat');
|
const isBaccarat = gameType.includes('baccarat');
|
||||||
const isRoulette = gameType.includes('isRoulette');
|
const isRoulette = gameType.includes('isRoulette');
|
||||||
|
|
||||||
let targetMember: MemberModel | ParentMemberModel | undefined;
|
let targetMember: MemberModel | undefined;
|
||||||
|
|
||||||
let rate = 0;
|
let rate = 0;
|
||||||
|
|
||||||
|
@ -328,9 +325,9 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
__getMemberByParentMemberAndClassId(
|
__getMemberByParentMemberAndClassId(
|
||||||
parentMember: ParentMemberModel | undefined,
|
parentMember: MemberModel | undefined,
|
||||||
classId: string
|
classId: string
|
||||||
): ParentMemberModel | undefined {
|
): MemberModel | undefined {
|
||||||
if (!parentMember) {
|
if (!parentMember) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,10 +36,7 @@ import { SlotService } from '../services/slot.service';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { ListBettingHistoryResponse } from 'app/modules/proto/c2se/api/betting_pb';
|
import { ListBettingHistoryResponse } from 'app/modules/proto/c2se/api/betting_pb';
|
||||||
import { ListMembersResponse } from 'app/modules/proto/c2se/member_pb';
|
import { ListMembersResponse } from 'app/modules/proto/c2se/member_pb';
|
||||||
import {
|
import { MemberModel } from 'app/modules/proto/models/member_pb';
|
||||||
MemberModel,
|
|
||||||
ParentMemberModel,
|
|
||||||
} from 'app/modules/proto/models/member_pb';
|
|
||||||
import { BettingHistoryModel } from 'app/modules/proto/models/api/betting_pb';
|
import { BettingHistoryModel } from 'app/modules/proto/models/api/betting_pb';
|
||||||
import { environment } from 'environments/environment';
|
import { environment } from 'environments/environment';
|
||||||
|
|
||||||
|
@ -268,7 +265,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
const isBaccarat = gameType.includes('baccarat');
|
const isBaccarat = gameType.includes('baccarat');
|
||||||
const isRoulette = gameType.includes('isRoulette');
|
const isRoulette = gameType.includes('isRoulette');
|
||||||
|
|
||||||
let targetMember: MemberModel | ParentMemberModel | undefined;
|
let targetMember: MemberModel | undefined;
|
||||||
|
|
||||||
let rate = 0;
|
let rate = 0;
|
||||||
|
|
||||||
|
@ -301,9 +298,9 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
__getMemberByParentMemberAndClassId(
|
__getMemberByParentMemberAndClassId(
|
||||||
parentMember: ParentMemberModel | undefined,
|
parentMember: MemberModel | undefined,
|
||||||
classId: string
|
classId: string
|
||||||
): ParentMemberModel | undefined {
|
): MemberModel | undefined {
|
||||||
if (!parentMember) {
|
if (!parentMember) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
145
src/app/modules/proto/models/member_pb.d.ts
vendored
145
src/app/modules/proto/models/member_pb.d.ts
vendored
|
@ -109,145 +109,6 @@ export namespace Member {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ParentMemberModel extends jspb.Message {
|
|
||||||
getId(): string;
|
|
||||||
setId(value: string): void;
|
|
||||||
|
|
||||||
hasSite(): boolean;
|
|
||||||
clearSite(): void;
|
|
||||||
getSite(): models_site_pb.Site | undefined;
|
|
||||||
setSite(value?: models_site_pb.Site): void;
|
|
||||||
|
|
||||||
hasMemberClass(): boolean;
|
|
||||||
clearMemberClass(): void;
|
|
||||||
getMemberClass(): models_member_class_pb.MemberClass | undefined;
|
|
||||||
setMemberClass(value?: models_member_class_pb.MemberClass): void;
|
|
||||||
|
|
||||||
hasMemberLevel(): boolean;
|
|
||||||
clearMemberLevel(): void;
|
|
||||||
getMemberLevel(): models_member_level_pb.MemberLevel | undefined;
|
|
||||||
setMemberLevel(value?: models_member_level_pb.MemberLevel): void;
|
|
||||||
|
|
||||||
hasBankAccount(): boolean;
|
|
||||||
clearBankAccount(): void;
|
|
||||||
getBankAccount():
|
|
||||||
| models_member_bank_account_pb.MemberBankAccountModel
|
|
||||||
| undefined;
|
|
||||||
setBankAccount(
|
|
||||||
value?: models_member_bank_account_pb.MemberBankAccountModel
|
|
||||||
): void;
|
|
||||||
|
|
||||||
hasParentMemberId(): boolean;
|
|
||||||
clearParentMemberId(): void;
|
|
||||||
getParentMemberId(): string;
|
|
||||||
setParentMemberId(value: string): void;
|
|
||||||
|
|
||||||
getChildMemberCount(): number;
|
|
||||||
setChildMemberCount(value: number): void;
|
|
||||||
|
|
||||||
getUsername(): string;
|
|
||||||
setUsername(value: string): void;
|
|
||||||
|
|
||||||
getNickname(): string;
|
|
||||||
setNickname(value: string): void;
|
|
||||||
|
|
||||||
hasMobilePhoneNumber(): boolean;
|
|
||||||
clearMobilePhoneNumber(): void;
|
|
||||||
getMobilePhoneNumber(): string;
|
|
||||||
setMobilePhoneNumber(value: string): void;
|
|
||||||
|
|
||||||
getState(): MemberStateMap[keyof MemberStateMap];
|
|
||||||
setState(value: MemberStateMap[keyof MemberStateMap]): void;
|
|
||||||
|
|
||||||
hasStateChangedAt(): boolean;
|
|
||||||
clearStateChangedAt(): void;
|
|
||||||
getStateChangedAt(): number;
|
|
||||||
setStateChangedAt(value: number): void;
|
|
||||||
|
|
||||||
hasMemberGameSetting(): boolean;
|
|
||||||
clearMemberGameSetting(): void;
|
|
||||||
getMemberGameSetting():
|
|
||||||
| models_member_game_setting_pb.MemberGameSetting
|
|
||||||
| undefined;
|
|
||||||
setMemberGameSetting(
|
|
||||||
value?: models_member_game_setting_pb.MemberGameSetting
|
|
||||||
): void;
|
|
||||||
|
|
||||||
hasMemberSettlementSetting(): boolean;
|
|
||||||
clearMemberSettlementSetting(): void;
|
|
||||||
getMemberSettlementSetting():
|
|
||||||
| models_member_settlement_setting_pb.MemberSettlementSetting
|
|
||||||
| undefined;
|
|
||||||
setMemberSettlementSetting(
|
|
||||||
value?: models_member_settlement_setting_pb.MemberSettlementSetting
|
|
||||||
): void;
|
|
||||||
|
|
||||||
hasLastSigninedIp(): boolean;
|
|
||||||
clearLastSigninedIp(): void;
|
|
||||||
getLastSigninedIp(): string;
|
|
||||||
setLastSigninedIp(value: string): void;
|
|
||||||
|
|
||||||
hasLastSigninedAt(): boolean;
|
|
||||||
clearLastSigninedAt(): void;
|
|
||||||
getLastSigninedAt(): number;
|
|
||||||
setLastSigninedAt(value: number): void;
|
|
||||||
|
|
||||||
getCreatedAt(): number;
|
|
||||||
setCreatedAt(value: number): void;
|
|
||||||
|
|
||||||
getUpdatedAt(): number;
|
|
||||||
setUpdatedAt(value: number): void;
|
|
||||||
|
|
||||||
hasDeletedAt(): boolean;
|
|
||||||
clearDeletedAt(): void;
|
|
||||||
getDeletedAt(): number;
|
|
||||||
setDeletedAt(value: number): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): ParentMemberModel.AsObject;
|
|
||||||
static toObject(
|
|
||||||
includeInstance: boolean,
|
|
||||||
msg: ParentMemberModel
|
|
||||||
): ParentMemberModel.AsObject;
|
|
||||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
|
||||||
static extensionsBinary: {
|
|
||||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
|
||||||
};
|
|
||||||
static serializeBinaryToWriter(
|
|
||||||
message: ParentMemberModel,
|
|
||||||
writer: jspb.BinaryWriter
|
|
||||||
): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): ParentMemberModel;
|
|
||||||
static deserializeBinaryFromReader(
|
|
||||||
message: ParentMemberModel,
|
|
||||||
reader: jspb.BinaryReader
|
|
||||||
): ParentMemberModel;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace ParentMemberModel {
|
|
||||||
export type AsObject = {
|
|
||||||
id: string;
|
|
||||||
site?: models_site_pb.Site.AsObject;
|
|
||||||
memberClass?: models_member_class_pb.MemberClass.AsObject;
|
|
||||||
memberLevel?: models_member_level_pb.MemberLevel.AsObject;
|
|
||||||
bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject;
|
|
||||||
parentMemberId: string;
|
|
||||||
childMemberCount: number;
|
|
||||||
username: string;
|
|
||||||
nickname: string;
|
|
||||||
mobilePhoneNumber: string;
|
|
||||||
state: MemberStateMap[keyof MemberStateMap];
|
|
||||||
stateChangedAt: number;
|
|
||||||
memberGameSetting?: models_member_game_setting_pb.MemberGameSetting.AsObject;
|
|
||||||
memberSettlementSetting?: models_member_settlement_setting_pb.MemberSettlementSetting.AsObject;
|
|
||||||
lastSigninedIp: string;
|
|
||||||
lastSigninedAt: number;
|
|
||||||
createdAt: number;
|
|
||||||
updatedAt: number;
|
|
||||||
deletedAt: number;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export class MemberModel extends jspb.Message {
|
export class MemberModel extends jspb.Message {
|
||||||
getId(): string;
|
getId(): string;
|
||||||
setId(value: string): void;
|
setId(value: string): void;
|
||||||
|
@ -278,8 +139,8 @@ export class MemberModel extends jspb.Message {
|
||||||
|
|
||||||
hasParentMember(): boolean;
|
hasParentMember(): boolean;
|
||||||
clearParentMember(): void;
|
clearParentMember(): void;
|
||||||
getParentMember(): ParentMemberModel | undefined;
|
getParentMember(): MemberModel | undefined;
|
||||||
setParentMember(value?: ParentMemberModel): void;
|
setParentMember(value?: MemberModel): void;
|
||||||
|
|
||||||
getChildMemberCount(): number;
|
getChildMemberCount(): number;
|
||||||
setChildMemberCount(value: number): void;
|
setChildMemberCount(value: number): void;
|
||||||
|
@ -370,7 +231,7 @@ export namespace MemberModel {
|
||||||
memberClass?: models_member_class_pb.MemberClass.AsObject;
|
memberClass?: models_member_class_pb.MemberClass.AsObject;
|
||||||
memberLevel?: models_member_level_pb.MemberLevel.AsObject;
|
memberLevel?: models_member_level_pb.MemberLevel.AsObject;
|
||||||
bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject;
|
bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject;
|
||||||
parentMember?: ParentMemberModel.AsObject;
|
parentMember?: MemberModel.AsObject;
|
||||||
childMemberCount: number;
|
childMemberCount: number;
|
||||||
username: string;
|
username: string;
|
||||||
nickname: string;
|
nickname: string;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user