From bfadb751c51311e385bdbc2a0b48fc20047a99f8 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Sun, 14 Aug 2022 08:54:50 +0000 Subject: [PATCH] bug fixed --- .../proto/c2se/member_bank_deposit_pb.d.ts | 12 +- .../proto/c2se/member_bank_deposit_pb.js | 32 ++--- .../proto/c2se/member_bank_withdraw_pb.d.ts | 12 +- .../proto/c2se/member_bank_withdraw_pb.js | 32 ++--- .../modules/proto/c2se/member_class_pb.d.ts | 14 ++ src/app/modules/proto/c2se/member_class_pb.js | 130 ++++++++++++++++-- .../modules/proto/c2se/member_level_pb.d.ts | 14 ++ src/app/modules/proto/c2se/member_level_pb.js | 130 ++++++++++++++++-- src/app/modules/proto/models/bank_pb.d.ts | 6 +- src/app/modules/proto/models/bank_pb.js | 18 +-- .../modules/proto/models/member_class_pb.d.ts | 4 + .../modules/proto/models/member_class_pb.js | 80 +++++++---- .../modules/proto/models/member_level_pb.d.ts | 4 + .../modules/proto/models/member_level_pb.js | 92 ++++++++----- 14 files changed, 446 insertions(+), 134 deletions(-) diff --git a/src/app/modules/proto/c2se/member_bank_deposit_pb.d.ts b/src/app/modules/proto/c2se/member_bank_deposit_pb.d.ts index a6155a8..0e05a0b 100644 --- a/src/app/modules/proto/c2se/member_bank_deposit_pb.d.ts +++ b/src/app/modules/proto/c2se/member_bank_deposit_pb.d.ts @@ -132,8 +132,8 @@ export namespace ListMemberBankDepositsRequest { hasAmount(): boolean; clearAmount(): void; - getAmount(): string; - setAmount(value: string): void; + getAmount(): number; + setAmount(value: number): void; hasMemoLike(): boolean; clearMemoLike(): void; @@ -142,8 +142,8 @@ export namespace ListMemberBankDepositsRequest { hasState(): boolean; clearState(): void; - getState(): string; - setState(value: string): void; + getState(): models_member_bank_deposit_pb.MemberBankDepositStateMap[keyof models_member_bank_deposit_pb.MemberBankDepositStateMap]; + setState(value: models_member_bank_deposit_pb.MemberBankDepositStateMap[keyof models_member_bank_deposit_pb.MemberBankDepositStateMap]): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Search.AsObject; @@ -159,9 +159,9 @@ export namespace ListMemberBankDepositsRequest { export type AsObject = { memberId: string, nameLike: string, - amount: string, + amount: number, memoLike: string, - state: string, + state: models_member_bank_deposit_pb.MemberBankDepositStateMap[keyof models_member_bank_deposit_pb.MemberBankDepositStateMap], } } } diff --git a/src/app/modules/proto/c2se/member_bank_deposit_pb.js b/src/app/modules/proto/c2se/member_bank_deposit_pb.js index e15e9d4..34081a3 100644 --- a/src/app/modules/proto/c2se/member_bank_deposit_pb.js +++ b/src/app/modules/proto/c2se/member_bank_deposit_pb.js @@ -1184,9 +1184,9 @@ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search. var f, obj = { memberId: jspb.Message.getFieldWithDefault(msg, 1, ""), nameLike: jspb.Message.getFieldWithDefault(msg, 2, ""), - amount: jspb.Message.getFieldWithDefault(msg, 3, ""), + amount: jspb.Message.getFieldWithDefault(msg, 3, 0), memoLike: jspb.Message.getFieldWithDefault(msg, 4, ""), - state: jspb.Message.getFieldWithDefault(msg, 5, "") + state: jspb.Message.getFieldWithDefault(msg, 5, 0) }; if (includeInstance) { @@ -1232,7 +1232,7 @@ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search. msg.setNameLike(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); + var value = /** @type {number} */ (reader.readUint32()); msg.setAmount(value); break; case 4: @@ -1240,7 +1240,7 @@ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search. msg.setMemoLike(value); break; case 5: - var value = /** @type {string} */ (reader.readString()); + var value = /** @type {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ (reader.readEnum()); msg.setState(value); break; default: @@ -1286,9 +1286,9 @@ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search. f ); } - f = /** @type {string} */ (jspb.Message.getField(message, 3)); + f = /** @type {number} */ (jspb.Message.getField(message, 3)); if (f != null) { - writer.writeString( + writer.writeUint32( 3, f ); @@ -1300,9 +1300,9 @@ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search. f ); } - f = /** @type {string} */ (jspb.Message.getField(message, 5)); + f = /** @type {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ (jspb.Message.getField(message, 5)); if (f != null) { - writer.writeString( + writer.writeEnum( 5, f ); @@ -1383,16 +1383,16 @@ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search. /** - * optional string amount = 3; - * @return {string} + * optional uint32 amount = 3; + * @return {number} */ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.getAmount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {string} value + * @param {number} value * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this */ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.setAmount = function(value) { @@ -1455,16 +1455,16 @@ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search. /** - * optional string state = 5; - * @return {string} + * optional bet.beteran.member_bank_deposit.MemberBankDepositState state = 5; + * @return {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** - * @param {string} value + * @param {!proto.bet.beteran.member_bank_deposit.MemberBankDepositState} value * @return {!proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search} returns this */ proto.bet.beteran.c2se.member_bank_deposit.ListMemberBankDepositsRequest.Search.prototype.setState = function(value) { diff --git a/src/app/modules/proto/c2se/member_bank_withdraw_pb.d.ts b/src/app/modules/proto/c2se/member_bank_withdraw_pb.d.ts index 209b39b..b46e327 100644 --- a/src/app/modules/proto/c2se/member_bank_withdraw_pb.d.ts +++ b/src/app/modules/proto/c2se/member_bank_withdraw_pb.d.ts @@ -154,8 +154,8 @@ export namespace ListMemberBankWithdrawsRequest { hasAmount(): boolean; clearAmount(): void; - getAmount(): string; - setAmount(value: string): void; + getAmount(): number; + setAmount(value: number): void; hasMemoLike(): boolean; clearMemoLike(): void; @@ -164,8 +164,8 @@ export namespace ListMemberBankWithdrawsRequest { hasState(): boolean; clearState(): void; - getState(): string; - setState(value: string): void; + getState(): models_member_bank_withdraw_pb.MemberBankWithdrawStateMap[keyof models_member_bank_withdraw_pb.MemberBankWithdrawStateMap]; + setState(value: models_member_bank_withdraw_pb.MemberBankWithdrawStateMap[keyof models_member_bank_withdraw_pb.MemberBankWithdrawStateMap]): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Search.AsObject; @@ -183,9 +183,9 @@ export namespace ListMemberBankWithdrawsRequest { bankNameLike: string, nameLike: string, accountNumberLike: string, - amount: string, + amount: number, memoLike: string, - state: string, + state: models_member_bank_withdraw_pb.MemberBankWithdrawStateMap[keyof models_member_bank_withdraw_pb.MemberBankWithdrawStateMap], } } } diff --git a/src/app/modules/proto/c2se/member_bank_withdraw_pb.js b/src/app/modules/proto/c2se/member_bank_withdraw_pb.js index 8db4207..31468e7 100644 --- a/src/app/modules/proto/c2se/member_bank_withdraw_pb.js +++ b/src/app/modules/proto/c2se/member_bank_withdraw_pb.js @@ -1276,9 +1276,9 @@ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Searc bankNameLike: jspb.Message.getFieldWithDefault(msg, 2, ""), nameLike: jspb.Message.getFieldWithDefault(msg, 3, ""), accountNumberLike: jspb.Message.getFieldWithDefault(msg, 4, ""), - amount: jspb.Message.getFieldWithDefault(msg, 5, ""), + amount: jspb.Message.getFieldWithDefault(msg, 5, 0), memoLike: jspb.Message.getFieldWithDefault(msg, 6, ""), - state: jspb.Message.getFieldWithDefault(msg, 7, "") + state: jspb.Message.getFieldWithDefault(msg, 7, 0) }; if (includeInstance) { @@ -1332,7 +1332,7 @@ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Searc msg.setAccountNumberLike(value); break; case 5: - var value = /** @type {string} */ (reader.readString()); + var value = /** @type {number} */ (reader.readUint32()); msg.setAmount(value); break; case 6: @@ -1340,7 +1340,7 @@ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Searc msg.setMemoLike(value); break; case 7: - var value = /** @type {string} */ (reader.readString()); + var value = /** @type {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ (reader.readEnum()); msg.setState(value); break; default: @@ -1400,9 +1400,9 @@ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Searc f ); } - f = /** @type {string} */ (jspb.Message.getField(message, 5)); + f = /** @type {number} */ (jspb.Message.getField(message, 5)); if (f != null) { - writer.writeString( + writer.writeUint32( 5, f ); @@ -1414,9 +1414,9 @@ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Searc f ); } - f = /** @type {string} */ (jspb.Message.getField(message, 7)); + f = /** @type {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ (jspb.Message.getField(message, 7)); if (f != null) { - writer.writeString( + writer.writeEnum( 7, f ); @@ -1569,16 +1569,16 @@ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Searc /** - * optional string amount = 5; - * @return {string} + * optional uint32 amount = 5; + * @return {number} */ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getAmount = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** - * @param {string} value + * @param {number} value * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this */ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.setAmount = function(value) { @@ -1641,16 +1641,16 @@ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Searc /** - * optional string state = 7; - * @return {string} + * optional bet.beteran.member_bank_withdraw.MemberBankWithdrawState state = 7; + * @return {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); + return /** @type {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** - * @param {string} value + * @param {!proto.bet.beteran.member_bank_withdraw.MemberBankWithdrawState} value * @return {!proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search} returns this */ proto.bet.beteran.c2se.member_bank_withdraw.ListMemberBankWithdrawsRequest.Search.prototype.setState = function(value) { diff --git a/src/app/modules/proto/c2se/member_class_pb.d.ts b/src/app/modules/proto/c2se/member_class_pb.d.ts index 394b960..f1e314e 100644 --- a/src/app/modules/proto/c2se/member_class_pb.d.ts +++ b/src/app/modules/proto/c2se/member_class_pb.d.ts @@ -15,6 +15,9 @@ export class CreateMemberClassRequest extends jspb.Message { getName(): string; setName(value: string): void; + getShow(): boolean; + setShow(value: boolean): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): CreateMemberClassRequest.AsObject; static toObject(includeInstance: boolean, msg: CreateMemberClassRequest): CreateMemberClassRequest.AsObject; @@ -29,6 +32,7 @@ export namespace CreateMemberClassRequest { export type AsObject = { parentId: string, name: string, + show: boolean, } } @@ -121,6 +125,11 @@ export namespace ListMemberClassesRequest { getNameLike(): string; setNameLike(value: string): void; + hasShow(): boolean; + clearShow(): void; + getShow(): boolean; + setShow(value: boolean): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Search.AsObject; static toObject(includeInstance: boolean, msg: Search): Search.AsObject; @@ -134,6 +143,7 @@ export namespace ListMemberClassesRequest { export namespace Search { export type AsObject = { nameLike: string, + show: boolean, } } } @@ -270,6 +280,9 @@ export class UpdateMemberClassRequest extends jspb.Message { getName(): string; setName(value: string): void; + getShow(): boolean; + setShow(value: boolean): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): UpdateMemberClassRequest.AsObject; static toObject(includeInstance: boolean, msg: UpdateMemberClassRequest): UpdateMemberClassRequest.AsObject; @@ -285,6 +298,7 @@ export namespace UpdateMemberClassRequest { id: string, parentId: string, name: string, + show: boolean, } } diff --git a/src/app/modules/proto/c2se/member_class_pb.js b/src/app/modules/proto/c2se/member_class_pb.js index db1b91f..4701ecb 100644 --- a/src/app/modules/proto/c2se/member_class_pb.js +++ b/src/app/modules/proto/c2se/member_class_pb.js @@ -406,7 +406,8 @@ proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.toObject proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.toObject = function(includeInstance, msg) { var f, obj = { parentId: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, "") + name: jspb.Message.getFieldWithDefault(msg, 2, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -451,6 +452,10 @@ proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.deserializeBinaryFr var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; default: reader.skipField(); break; @@ -494,6 +499,13 @@ proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.serializeBinaryToWr f ); } + f = message.getShow(); + if (f) { + writer.writeBool( + 3, + f + ); + } }; @@ -551,6 +563,24 @@ proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.setName = }; +/** + * optional bool show = 3; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_class.CreateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.CreateMemberClassRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + @@ -1086,7 +1116,8 @@ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.to */ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.toObject = function(includeInstance, msg) { var f, obj = { - nameLike: jspb.Message.getFieldWithDefault(msg, 4, "") + nameLike: jspb.Message.getFieldWithDefault(msg, 1, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -1123,10 +1154,14 @@ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.deserializeB } var field = reader.getFieldNumber(); switch (field) { - case 4: + case 1: var value = /** @type {string} */ (reader.readString()); msg.setNameLike(value); break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; default: reader.skipField(); break; @@ -1156,10 +1191,17 @@ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.se */ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = /** @type {string} */ (jspb.Message.getField(message, 4)); + f = /** @type {string} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeString( - 4, + 1, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeBool( + 2, f ); } @@ -1167,11 +1209,11 @@ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.serializeBin /** - * optional string name_like = 4; + * optional string name_like = 1; * @return {string} */ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.getNameLike = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -1180,7 +1222,7 @@ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.ge * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this */ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.setNameLike = function(value) { - return jspb.Message.setField(this, 4, value); + return jspb.Message.setField(this, 1, value); }; @@ -1189,7 +1231,7 @@ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.se * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this */ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.clearNameLike = function() { - return jspb.Message.setField(this, 4, undefined); + return jspb.Message.setField(this, 1, undefined); }; @@ -1198,7 +1240,43 @@ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.cl * @return {boolean} */ proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.hasNameLike = function() { - return jspb.Message.getField(this, 4) != null; + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bool show = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.setShow = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.clearShow = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.ListMemberClassesRequest.Search.prototype.hasShow = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -2193,7 +2271,8 @@ proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.toObject = function var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), parentId: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, "") + name: jspb.Message.getFieldWithDefault(msg, 3, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) }; if (includeInstance) { @@ -2242,6 +2321,10 @@ proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.deserializeBinaryFr var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; default: reader.skipField(); break; @@ -2292,6 +2375,13 @@ proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.serializeBinaryToWr f ); } + f = message.getShow(); + if (f) { + writer.writeBool( + 4, + f + ); + } }; @@ -2367,6 +2457,24 @@ proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.setName = }; +/** + * optional bool show = 4; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest} returns this + */ +proto.bet.beteran.c2se.member_class.UpdateMemberClassRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + diff --git a/src/app/modules/proto/c2se/member_level_pb.d.ts b/src/app/modules/proto/c2se/member_level_pb.d.ts index 352c337..cbd3aec 100644 --- a/src/app/modules/proto/c2se/member_level_pb.d.ts +++ b/src/app/modules/proto/c2se/member_level_pb.d.ts @@ -10,6 +10,9 @@ export class CreateMemberLevelRequest extends jspb.Message { getName(): string; setName(value: string): void; + getShow(): boolean; + setShow(value: boolean): void; + getSortOrder(): number; setSortOrder(value: number): void; @@ -26,6 +29,7 @@ export class CreateMemberLevelRequest extends jspb.Message { export namespace CreateMemberLevelRequest { export type AsObject = { name: string, + show: boolean, sortOrder: number, } } @@ -119,6 +123,11 @@ export namespace ListMemberLevelsRequest { getNameLike(): string; setNameLike(value: string): void; + hasShow(): boolean; + clearShow(): void; + getShow(): boolean; + setShow(value: boolean): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Search.AsObject; static toObject(includeInstance: boolean, msg: Search): Search.AsObject; @@ -132,6 +141,7 @@ export namespace ListMemberLevelsRequest { export namespace Search { export type AsObject = { nameLike: string, + show: boolean, } } } @@ -263,6 +273,9 @@ export class UpdateMemberLevelRequest extends jspb.Message { getName(): string; setName(value: string): void; + getShow(): boolean; + setShow(value: boolean): void; + getSortOrder(): number; setSortOrder(value: number): void; @@ -280,6 +293,7 @@ export namespace UpdateMemberLevelRequest { export type AsObject = { id: string, name: string, + show: boolean, sortOrder: number, } } diff --git a/src/app/modules/proto/c2se/member_level_pb.js b/src/app/modules/proto/c2se/member_level_pb.js index 12e91ec..41b01ed 100644 --- a/src/app/modules/proto/c2se/member_level_pb.js +++ b/src/app/modules/proto/c2se/member_level_pb.js @@ -406,7 +406,8 @@ proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.toObject proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), - sortOrder: jspb.Message.getFieldWithDefault(msg, 2, 0) + show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + sortOrder: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -448,6 +449,10 @@ proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.deserializeBinaryFr msg.setName(value); break; case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 3: var value = /** @type {number} */ (reader.readUint32()); msg.setSortOrder(value); break; @@ -487,10 +492,17 @@ proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.serializeBinaryToWr f ); } + f = message.getShow(); + if (f) { + writer.writeBool( + 2, + f + ); + } f = message.getSortOrder(); if (f !== 0) { writer.writeUint32( - 2, + 3, f ); } @@ -516,11 +528,29 @@ proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.setName = /** - * optional uint32 sort_order = 2; + * optional bool show = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional uint32 sort_order = 3; * @return {number} */ proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.getSortOrder = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; @@ -529,7 +559,7 @@ proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.getSortOr * @return {!proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest} returns this */ proto.bet.beteran.c2se.member_level.CreateMemberLevelRequest.prototype.setSortOrder = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + return jspb.Message.setProto3IntField(this, 3, value); }; @@ -1068,7 +1098,8 @@ proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.toO */ proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.toObject = function(includeInstance, msg) { var f, obj = { - nameLike: jspb.Message.getFieldWithDefault(msg, 1, "") + nameLike: jspb.Message.getFieldWithDefault(msg, 1, ""), + show: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) }; if (includeInstance) { @@ -1109,6 +1140,10 @@ proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.deserializeBi var value = /** @type {string} */ (reader.readString()); msg.setNameLike(value); break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; default: reader.skipField(); break; @@ -1145,6 +1180,13 @@ proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.serializeBina f ); } + f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeBool( + 2, + f + ); + } }; @@ -1184,6 +1226,42 @@ proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.has }; +/** + * optional bool show = 2; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.setShow = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search} returns this + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.clearShow = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.ListMemberLevelsRequest.Search.prototype.hasShow = function() { + return jspb.Message.getField(this, 2) != null; +}; + + /** * optional bet.protobuf.pagination.Pagination pagination = 1; * @return {?proto.bet.protobuf.pagination.Pagination} @@ -2175,7 +2253,8 @@ proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.toObject = function var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), - sortOrder: jspb.Message.getFieldWithDefault(msg, 3, 0) + show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + sortOrder: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -2221,6 +2300,10 @@ proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.deserializeBinaryFr msg.setName(value); break; case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 4: var value = /** @type {number} */ (reader.readUint32()); msg.setSortOrder(value); break; @@ -2267,10 +2350,17 @@ proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.serializeBinaryToWr f ); } + f = message.getShow(); + if (f) { + writer.writeBool( + 3, + f + ); + } f = message.getSortOrder(); if (f !== 0) { writer.writeUint32( - 3, + 4, f ); } @@ -2314,11 +2404,29 @@ proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.setName = /** - * optional uint32 sort_order = 3; + * optional bool show = 3; + * @return {boolean} + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} returns this + */ +proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional uint32 sort_order = 4; * @return {number} */ proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.getSortOrder = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; @@ -2327,7 +2435,7 @@ proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.getSortOr * @return {!proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest} returns this */ proto.bet.beteran.c2se.member_level.UpdateMemberLevelRequest.prototype.setSortOrder = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); + return jspb.Message.setProto3IntField(this, 4, value); }; diff --git a/src/app/modules/proto/models/bank_pb.d.ts b/src/app/modules/proto/models/bank_pb.d.ts index 6ef4f13..3a18785 100644 --- a/src/app/modules/proto/models/bank_pb.d.ts +++ b/src/app/modules/proto/models/bank_pb.d.ts @@ -10,8 +10,8 @@ export class Bank extends jspb.Message { getName(): string; setName(value: string): void; - getSortOrder(): boolean; - setSortOrder(value: boolean): void; + getSortOrder(): number; + setSortOrder(value: number): void; getShow(): boolean; setShow(value: boolean): void; @@ -44,7 +44,7 @@ export namespace Bank { export type AsObject = { id: string, name: string, - sortOrder: boolean, + sortOrder: number, show: boolean, canUse: boolean, memo: string, diff --git a/src/app/modules/proto/models/bank_pb.js b/src/app/modules/proto/models/bank_pb.js index 8b9877e..9f0f56f 100644 --- a/src/app/modules/proto/models/bank_pb.js +++ b/src/app/modules/proto/models/bank_pb.js @@ -71,7 +71,7 @@ proto.bet.beteran.bank.Bank.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), - sortOrder: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + sortOrder: jspb.Message.getFieldWithDefault(msg, 3, 0), show: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), canUse: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), memo: jspb.Message.getFieldWithDefault(msg, 6, ""), @@ -122,7 +122,7 @@ proto.bet.beteran.bank.Bank.deserializeBinaryFromReader = function(msg, reader) msg.setName(value); break; case 3: - var value = /** @type {boolean} */ (reader.readBool()); + var value = /** @type {number} */ (reader.readUint32()); msg.setSortOrder(value); break; case 4: @@ -189,8 +189,8 @@ proto.bet.beteran.bank.Bank.serializeBinaryToWriter = function(message, writer) ); } f = message.getSortOrder(); - if (f) { - writer.writeBool( + if (f !== 0) { + writer.writeUint32( 3, f ); @@ -270,20 +270,20 @@ proto.bet.beteran.bank.Bank.prototype.setName = function(value) { /** - * optional bool sort_order = 3; - * @return {boolean} + * optional uint32 sort_order = 3; + * @return {number} */ proto.bet.beteran.bank.Bank.prototype.getSortOrder = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {boolean} value + * @param {number} value * @return {!proto.bet.beteran.bank.Bank} returns this */ proto.bet.beteran.bank.Bank.prototype.setSortOrder = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); + return jspb.Message.setProto3IntField(this, 3, value); }; diff --git a/src/app/modules/proto/models/member_class_pb.d.ts b/src/app/modules/proto/models/member_class_pb.d.ts index 936e1d3..c597b6b 100644 --- a/src/app/modules/proto/models/member_class_pb.d.ts +++ b/src/app/modules/proto/models/member_class_pb.d.ts @@ -15,6 +15,9 @@ export class MemberClass extends jspb.Message { getName(): string; setName(value: string): void; + getShow(): boolean; + setShow(value: boolean): void; + getCreatedAt(): number; setCreatedAt(value: number): void; @@ -36,6 +39,7 @@ export namespace MemberClass { id: string, parentId: string, name: string, + show: boolean, createdAt: number, updatedAt: number, } diff --git a/src/app/modules/proto/models/member_class_pb.js b/src/app/modules/proto/models/member_class_pb.js index e345fce..e005ad3 100644 --- a/src/app/modules/proto/models/member_class_pb.js +++ b/src/app/modules/proto/models/member_class_pb.js @@ -72,8 +72,9 @@ proto.bet.beteran.member_class.MemberClass.toObject = function(includeInstance, id: jspb.Message.getFieldWithDefault(msg, 1, ""), parentId: jspb.Message.getFieldWithDefault(msg, 2, ""), name: jspb.Message.getFieldWithDefault(msg, 3, ""), - createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0), - updatedAt: jspb.Message.getFieldWithDefault(msg, 5, 0) + show: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0) }; if (includeInstance) { @@ -123,10 +124,14 @@ proto.bet.beteran.member_class.MemberClass.deserializeBinaryFromReader = functio msg.setName(value); break; case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 5: var value = /** @type {number} */ (reader.readUint64()); msg.setCreatedAt(value); break; - case 5: + case 6: var value = /** @type {number} */ (reader.readUint64()); msg.setUpdatedAt(value); break; @@ -180,17 +185,24 @@ proto.bet.beteran.member_class.MemberClass.serializeBinaryToWriter = function(me f ); } + f = message.getShow(); + if (f) { + writer.writeBool( + 4, + f + ); + } f = message.getCreatedAt(); if (f !== 0) { writer.writeUint64( - 4, + 5, f ); } f = message.getUpdatedAt(); if (f !== 0) { writer.writeUint64( - 5, + 6, f ); } @@ -270,28 +282,28 @@ proto.bet.beteran.member_class.MemberClass.prototype.setName = function(value) { /** - * optional uint64 created_at = 4; + * optional bool show = 4; + * @return {boolean} + */ +proto.bet.beteran.member_class.MemberClass.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.member_class.MemberClass} returns this + */ +proto.bet.beteran.member_class.MemberClass.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional uint64 created_at = 5; * @return {number} */ proto.bet.beteran.member_class.MemberClass.prototype.getCreatedAt = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.bet.beteran.member_class.MemberClass} returns this - */ -proto.bet.beteran.member_class.MemberClass.prototype.setCreatedAt = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional uint64 updated_at = 5; - * @return {number} - */ -proto.bet.beteran.member_class.MemberClass.prototype.getUpdatedAt = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; @@ -300,9 +312,27 @@ proto.bet.beteran.member_class.MemberClass.prototype.getUpdatedAt = function() { * @param {number} value * @return {!proto.bet.beteran.member_class.MemberClass} returns this */ -proto.bet.beteran.member_class.MemberClass.prototype.setUpdatedAt = function(value) { +proto.bet.beteran.member_class.MemberClass.prototype.setCreatedAt = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; +/** + * optional uint64 updated_at = 6; + * @return {number} + */ +proto.bet.beteran.member_class.MemberClass.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_class.MemberClass} returns this + */ +proto.bet.beteran.member_class.MemberClass.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + goog.object.extend(exports, proto.bet.beteran.member_class); diff --git a/src/app/modules/proto/models/member_level_pb.d.ts b/src/app/modules/proto/models/member_level_pb.d.ts index 2266f1f..90b4eb3 100644 --- a/src/app/modules/proto/models/member_level_pb.d.ts +++ b/src/app/modules/proto/models/member_level_pb.d.ts @@ -10,6 +10,9 @@ export class MemberLevel extends jspb.Message { getName(): string; setName(value: string): void; + getShow(): boolean; + setShow(value: boolean): void; + getSortOrder(): number; setSortOrder(value: number): void; @@ -33,6 +36,7 @@ export namespace MemberLevel { export type AsObject = { id: string, name: string, + show: boolean, sortOrder: number, createdAt: number, updatedAt: number, diff --git a/src/app/modules/proto/models/member_level_pb.js b/src/app/modules/proto/models/member_level_pb.js index e16db42..cd4bc7b 100644 --- a/src/app/modules/proto/models/member_level_pb.js +++ b/src/app/modules/proto/models/member_level_pb.js @@ -71,9 +71,10 @@ proto.bet.beteran.member_level.MemberLevel.toObject = function(includeInstance, var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), name: jspb.Message.getFieldWithDefault(msg, 2, ""), - sortOrder: jspb.Message.getFieldWithDefault(msg, 3, 0), - createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0), - updatedAt: jspb.Message.getFieldWithDefault(msg, 5, 0) + show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), + sortOrder: jspb.Message.getFieldWithDefault(msg, 4, 0), + createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0) }; if (includeInstance) { @@ -119,14 +120,18 @@ proto.bet.beteran.member_level.MemberLevel.deserializeBinaryFromReader = functio msg.setName(value); break; case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShow(value); + break; + case 4: var value = /** @type {number} */ (reader.readUint32()); msg.setSortOrder(value); break; - case 4: + case 5: var value = /** @type {number} */ (reader.readUint64()); msg.setCreatedAt(value); break; - case 5: + case 6: var value = /** @type {number} */ (reader.readUint64()); msg.setUpdatedAt(value); break; @@ -173,24 +178,31 @@ proto.bet.beteran.member_level.MemberLevel.serializeBinaryToWriter = function(me f ); } + f = message.getShow(); + if (f) { + writer.writeBool( + 3, + f + ); + } f = message.getSortOrder(); if (f !== 0) { writer.writeUint32( - 3, + 4, f ); } f = message.getCreatedAt(); if (f !== 0) { writer.writeUint64( - 4, + 5, f ); } f = message.getUpdatedAt(); if (f !== 0) { writer.writeUint64( - 5, + 6, f ); } @@ -234,28 +246,28 @@ proto.bet.beteran.member_level.MemberLevel.prototype.setName = function(value) { /** - * optional uint32 sort_order = 3; + * optional bool show = 3; + * @return {boolean} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getShow = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.bet.beteran.member_level.MemberLevel} returns this + */ +proto.bet.beteran.member_level.MemberLevel.prototype.setShow = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + +/** + * optional uint32 sort_order = 4; * @return {number} */ proto.bet.beteran.member_level.MemberLevel.prototype.getSortOrder = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.bet.beteran.member_level.MemberLevel} returns this - */ -proto.bet.beteran.member_level.MemberLevel.prototype.setSortOrder = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 created_at = 4; - * @return {number} - */ -proto.bet.beteran.member_level.MemberLevel.prototype.getCreatedAt = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; @@ -264,16 +276,16 @@ proto.bet.beteran.member_level.MemberLevel.prototype.getCreatedAt = function() { * @param {number} value * @return {!proto.bet.beteran.member_level.MemberLevel} returns this */ -proto.bet.beteran.member_level.MemberLevel.prototype.setCreatedAt = function(value) { +proto.bet.beteran.member_level.MemberLevel.prototype.setSortOrder = function(value) { return jspb.Message.setProto3IntField(this, 4, value); }; /** - * optional uint64 updated_at = 5; + * optional uint64 created_at = 5; * @return {number} */ -proto.bet.beteran.member_level.MemberLevel.prototype.getUpdatedAt = function() { +proto.bet.beteran.member_level.MemberLevel.prototype.getCreatedAt = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; @@ -282,9 +294,27 @@ proto.bet.beteran.member_level.MemberLevel.prototype.getUpdatedAt = function() { * @param {number} value * @return {!proto.bet.beteran.member_level.MemberLevel} returns this */ -proto.bet.beteran.member_level.MemberLevel.prototype.setUpdatedAt = function(value) { +proto.bet.beteran.member_level.MemberLevel.prototype.setCreatedAt = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; +/** + * optional uint64 updated_at = 6; + * @return {number} + */ +proto.bet.beteran.member_level.MemberLevel.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.bet.beteran.member_level.MemberLevel} returns this + */ +proto.bet.beteran.member_level.MemberLevel.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + goog.object.extend(exports, proto.bet.beteran.member_level);