member_balance is added

This commit is contained in:
병준 박 2022-09-16 14:08:14 +00:00
parent 9623974781
commit efa63afcd3
8 changed files with 4776 additions and 51 deletions

View File

@ -0,0 +1,10 @@
// package: bet.beteran.c2se.backend.member_balance
// file: c2se/backend/member_balance.proto
import * as jspb from 'google-protobuf';
export const SUBJECT_CREATE_MEMBER_BALANCE: string;
export const SUBJECT_LIST_MEMBER_BALANCES: string;
export const SUBJECT_GET_MEMBER_BALANCE: string;
export const SUBJECT_UPDATE_MEMBER_BALANCE: string;
export const SUBJECT_DELETE_MEMBER_BALANCE: string;

View File

@ -0,0 +1,39 @@
// source: c2se/backend/member_balance.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require("google-protobuf");
var goog = jspb;
var global = function () {
return this || window || global || self || Function("return this")();
}.call(null);
goog.exportSymbol(
"proto.bet.beteran.c2se.backend.member_balance",
null,
global
);
proto.bet.beteran.c2se.backend.member_balance = {};
proto.bet.beteran.c2se.backend.member_balance.SUBJECT_CREATE_MEMBER_BALANCE =
"bet.beteran.c2se.backend.member_balance.CreateMemberBankAccount";
proto.bet.beteran.c2se.backend.member_balance.SUBJECT_LIST_MEMBER_BALANCES =
"bet.beteran.c2se.backend.member_balance.ListMemberBankAccounts";
proto.bet.beteran.c2se.backend.member_balance.SUBJECT_GET_MEMBER_BALANCE =
"bet.beteran.c2se.backend.member_balance.GetMemberBankAccount";
proto.bet.beteran.c2se.backend.member_balance.SUBJECT_UPDATE_MEMBER_BALANCE =
"bet.beteran.c2se.backend.member_balance.UpdateMemberBankAccount";
proto.bet.beteran.c2se.backend.member_balance.SUBJECT_DELETE_MEMBER_BALANCE =
"bet.beteran.c2se.backend.member_balance.DeleteMemberBankAccount";
goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_balance);

View File

@ -0,0 +1,568 @@
// package: bet.beteran.c2se.member_balance
// file: c2se/member_balance.proto
import * as jspb from 'google-protobuf';
import * as protobuf_rpc_pb from '../protobuf/rpc_pb';
import * as protobuf_pagination_pb from '../protobuf/pagination_pb';
import * as models_member_balance_pb from '../models/member_balance_pb';
export class CreateMemberBalanceRequest extends jspb.Message {
getMemberId(): string;
setMemberId(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateMemberBalanceRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: CreateMemberBalanceRequest
): CreateMemberBalanceRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: CreateMemberBalanceRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): CreateMemberBalanceRequest;
static deserializeBinaryFromReader(
message: CreateMemberBalanceRequest,
reader: jspb.BinaryReader
): CreateMemberBalanceRequest;
}
export namespace CreateMemberBalanceRequest {
export type AsObject = {
memberId: string;
};
}
export class CreateMemberBalanceResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_pb.Error | undefined;
setError(value?: protobuf_rpc_pb.Error): void;
hasResult(): boolean;
clearResult(): void;
getResult(): CreateMemberBalanceResponse.Result | undefined;
setResult(value?: CreateMemberBalanceResponse.Result): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): CreateMemberBalanceResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: CreateMemberBalanceResponse
): CreateMemberBalanceResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: CreateMemberBalanceResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): CreateMemberBalanceResponse;
static deserializeBinaryFromReader(
message: CreateMemberBalanceResponse,
reader: jspb.BinaryReader
): CreateMemberBalanceResponse;
}
export namespace CreateMemberBalanceResponse {
export type AsObject = {
error?: protobuf_rpc_pb.Error.AsObject;
result?: CreateMemberBalanceResponse.Result.AsObject;
};
export class Result extends jspb.Message {
hasMemberBalance(): boolean;
clearMemberBalance(): void;
getMemberBalance(): models_member_balance_pb.MemberBalance | undefined;
setMemberBalance(value?: models_member_balance_pb.MemberBalance): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Result.AsObject;
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: Result,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): Result;
static deserializeBinaryFromReader(
message: Result,
reader: jspb.BinaryReader
): Result;
}
export namespace Result {
export type AsObject = {
memberBalance?: models_member_balance_pb.MemberBalance.AsObject;
};
}
}
export class ListMemberBalancesRequest extends jspb.Message {
hasPagination(): boolean;
clearPagination(): void;
getPagination(): protobuf_pagination_pb.Pagination | undefined;
setPagination(value?: protobuf_pagination_pb.Pagination): void;
clearSortsList(): void;
getSortsList(): Array<protobuf_pagination_pb.Sort>;
setSortsList(value: Array<protobuf_pagination_pb.Sort>): void;
addSorts(
value?: protobuf_pagination_pb.Sort,
index?: number
): protobuf_pagination_pb.Sort;
hasSearch(): boolean;
clearSearch(): void;
getSearch(): ListMemberBalancesRequest.Search | undefined;
setSearch(value?: ListMemberBalancesRequest.Search): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListMemberBalancesRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: ListMemberBalancesRequest
): ListMemberBalancesRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: ListMemberBalancesRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): ListMemberBalancesRequest;
static deserializeBinaryFromReader(
message: ListMemberBalancesRequest,
reader: jspb.BinaryReader
): ListMemberBalancesRequest;
}
export namespace ListMemberBalancesRequest {
export type AsObject = {
pagination?: protobuf_pagination_pb.Pagination.AsObject;
sortsList: Array<protobuf_pagination_pb.Sort.AsObject>;
search?: ListMemberBalancesRequest.Search.AsObject;
};
export class Search extends jspb.Message {
hasMemberId(): boolean;
clearMemberId(): void;
getMemberId(): string;
setMemberId(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Search.AsObject;
static toObject(includeInstance: boolean, msg: Search): Search.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: Search,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): Search;
static deserializeBinaryFromReader(
message: Search,
reader: jspb.BinaryReader
): Search;
}
export namespace Search {
export type AsObject = {
memberId: string;
};
}
}
export class ListMemberBalancesResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_pb.Error | undefined;
setError(value?: protobuf_rpc_pb.Error): void;
hasResult(): boolean;
clearResult(): void;
getResult(): ListMemberBalancesResponse.Result | undefined;
setResult(value?: ListMemberBalancesResponse.Result): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ListMemberBalancesResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: ListMemberBalancesResponse
): ListMemberBalancesResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: ListMemberBalancesResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): ListMemberBalancesResponse;
static deserializeBinaryFromReader(
message: ListMemberBalancesResponse,
reader: jspb.BinaryReader
): ListMemberBalancesResponse;
}
export namespace ListMemberBalancesResponse {
export type AsObject = {
error?: protobuf_rpc_pb.Error.AsObject;
result?: ListMemberBalancesResponse.Result.AsObject;
};
export class Result extends jspb.Message {
getTotalCount(): number;
setTotalCount(value: number): void;
clearMemberBalancesList(): void;
getMemberBalancesList(): Array<models_member_balance_pb.MemberBalance>;
setMemberBalancesList(
value: Array<models_member_balance_pb.MemberBalance>
): void;
addMemberBalances(
value?: models_member_balance_pb.MemberBalance,
index?: number
): models_member_balance_pb.MemberBalance;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Result.AsObject;
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: Result,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): Result;
static deserializeBinaryFromReader(
message: Result,
reader: jspb.BinaryReader
): Result;
}
export namespace Result {
export type AsObject = {
totalCount: number;
memberBalancesList: Array<models_member_balance_pb.MemberBalance.AsObject>;
};
}
}
export class GetMemberBalanceRequest extends jspb.Message {
getId(): string;
setId(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetMemberBalanceRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: GetMemberBalanceRequest
): GetMemberBalanceRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: GetMemberBalanceRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): GetMemberBalanceRequest;
static deserializeBinaryFromReader(
message: GetMemberBalanceRequest,
reader: jspb.BinaryReader
): GetMemberBalanceRequest;
}
export namespace GetMemberBalanceRequest {
export type AsObject = {
id: string;
};
}
export class GetMemberBalanceResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_pb.Error | undefined;
setError(value?: protobuf_rpc_pb.Error): void;
hasResult(): boolean;
clearResult(): void;
getResult(): GetMemberBalanceResponse.Result | undefined;
setResult(value?: GetMemberBalanceResponse.Result): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetMemberBalanceResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: GetMemberBalanceResponse
): GetMemberBalanceResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: GetMemberBalanceResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): GetMemberBalanceResponse;
static deserializeBinaryFromReader(
message: GetMemberBalanceResponse,
reader: jspb.BinaryReader
): GetMemberBalanceResponse;
}
export namespace GetMemberBalanceResponse {
export type AsObject = {
error?: protobuf_rpc_pb.Error.AsObject;
result?: GetMemberBalanceResponse.Result.AsObject;
};
export class Result extends jspb.Message {
hasMemberBalance(): boolean;
clearMemberBalance(): void;
getMemberBalance(): models_member_balance_pb.MemberBalance | undefined;
setMemberBalance(value?: models_member_balance_pb.MemberBalance): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Result.AsObject;
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: Result,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): Result;
static deserializeBinaryFromReader(
message: Result,
reader: jspb.BinaryReader
): Result;
}
export namespace Result {
export type AsObject = {
memberBalance?: models_member_balance_pb.MemberBalance.AsObject;
};
}
}
export class UpdateMemberBalanceRequest extends jspb.Message {
getId(): string;
setId(value: string): void;
getBalance(): number;
setBalance(value: number): void;
getBalanceBota(): number;
setBalanceBota(value: number): void;
getBalanceSum(): number;
setBalanceSum(value: number): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateMemberBalanceRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: UpdateMemberBalanceRequest
): UpdateMemberBalanceRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: UpdateMemberBalanceRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): UpdateMemberBalanceRequest;
static deserializeBinaryFromReader(
message: UpdateMemberBalanceRequest,
reader: jspb.BinaryReader
): UpdateMemberBalanceRequest;
}
export namespace UpdateMemberBalanceRequest {
export type AsObject = {
id: string;
balance: number;
balanceBota: number;
balanceSum: number;
};
}
export class UpdateMemberBalanceResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_pb.Error | undefined;
setError(value?: protobuf_rpc_pb.Error): void;
hasResult(): boolean;
clearResult(): void;
getResult(): UpdateMemberBalanceResponse.Result | undefined;
setResult(value?: UpdateMemberBalanceResponse.Result): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UpdateMemberBalanceResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: UpdateMemberBalanceResponse
): UpdateMemberBalanceResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: UpdateMemberBalanceResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): UpdateMemberBalanceResponse;
static deserializeBinaryFromReader(
message: UpdateMemberBalanceResponse,
reader: jspb.BinaryReader
): UpdateMemberBalanceResponse;
}
export namespace UpdateMemberBalanceResponse {
export type AsObject = {
error?: protobuf_rpc_pb.Error.AsObject;
result?: UpdateMemberBalanceResponse.Result.AsObject;
};
export class Result extends jspb.Message {
hasMemberBalance(): boolean;
clearMemberBalance(): void;
getMemberBalance(): models_member_balance_pb.MemberBalance | undefined;
setMemberBalance(value?: models_member_balance_pb.MemberBalance): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Result.AsObject;
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: Result,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): Result;
static deserializeBinaryFromReader(
message: Result,
reader: jspb.BinaryReader
): Result;
}
export namespace Result {
export type AsObject = {
memberBalance?: models_member_balance_pb.MemberBalance.AsObject;
};
}
}
export class DeleteMemberBalanceRequest extends jspb.Message {
getId(): string;
setId(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteMemberBalanceRequest.AsObject;
static toObject(
includeInstance: boolean,
msg: DeleteMemberBalanceRequest
): DeleteMemberBalanceRequest.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: DeleteMemberBalanceRequest,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): DeleteMemberBalanceRequest;
static deserializeBinaryFromReader(
message: DeleteMemberBalanceRequest,
reader: jspb.BinaryReader
): DeleteMemberBalanceRequest;
}
export namespace DeleteMemberBalanceRequest {
export type AsObject = {
id: string;
};
}
export class DeleteMemberBalanceResponse extends jspb.Message {
hasError(): boolean;
clearError(): void;
getError(): protobuf_rpc_pb.Error | undefined;
setError(value?: protobuf_rpc_pb.Error): void;
hasResult(): boolean;
clearResult(): void;
getResult(): DeleteMemberBalanceResponse.Result | undefined;
setResult(value?: DeleteMemberBalanceResponse.Result): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): DeleteMemberBalanceResponse.AsObject;
static toObject(
includeInstance: boolean,
msg: DeleteMemberBalanceResponse
): DeleteMemberBalanceResponse.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: DeleteMemberBalanceResponse,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): DeleteMemberBalanceResponse;
static deserializeBinaryFromReader(
message: DeleteMemberBalanceResponse,
reader: jspb.BinaryReader
): DeleteMemberBalanceResponse;
}
export namespace DeleteMemberBalanceResponse {
export type AsObject = {
error?: protobuf_rpc_pb.Error.AsObject;
result?: DeleteMemberBalanceResponse.Result.AsObject;
};
export class Result extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Result.AsObject;
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: Result,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): Result;
static deserializeBinaryFromReader(
message: Result,
reader: jspb.BinaryReader
): Result;
}
export namespace Result {
export type AsObject = {};
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,59 @@
// package: bet.beteran.member_balance
// file: models/member_balance.proto
import * as jspb from 'google-protobuf';
export class MemberBalance extends jspb.Message {
getId(): string;
setId(value: string): void;
getMemberId(): string;
setMemberId(value: string): void;
getBalance(): number;
setBalance(value: number): void;
getBalanceBota(): number;
setBalanceBota(value: number): void;
getBalanceSum(): number;
setBalanceSum(value: number): void;
getCreatedAt(): number;
setCreatedAt(value: number): void;
getUpdatedAt(): number;
setUpdatedAt(value: number): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MemberBalance.AsObject;
static toObject(
includeInstance: boolean,
msg: MemberBalance
): MemberBalance.AsObject;
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
static extensionsBinary: {
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
};
static serializeBinaryToWriter(
message: MemberBalance,
writer: jspb.BinaryWriter
): void;
static deserializeBinary(bytes: Uint8Array): MemberBalance;
static deserializeBinaryFromReader(
message: MemberBalance,
reader: jspb.BinaryReader
): MemberBalance;
}
export namespace MemberBalance {
export type AsObject = {
id: string;
memberId: string;
balance: number;
balanceBota: number;
balanceSum: number;
createdAt: number;
updatedAt: number;
};
}

View File

@ -0,0 +1,357 @@
// source: models/member_balance.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require("google-protobuf");
var goog = jspb;
var global = function () {
return this || window || global || self || Function("return this")();
}.call(null);
goog.exportSymbol(
"proto.bet.beteran.member_balance.MemberBalance",
null,
global
);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.bet.beteran.member_balance.MemberBalance = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.bet.beteran.member_balance.MemberBalance, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.bet.beteran.member_balance.MemberBalance.displayName =
"proto.bet.beteran.member_balance.MemberBalance";
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.toObject = function (
opt_includeInstance
) {
return proto.bet.beteran.member_balance.MemberBalance.toObject(
opt_includeInstance,
this
);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.bet.beteran.member_balance.MemberBalance} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.member_balance.MemberBalance.toObject = function (
includeInstance,
msg
) {
var f,
obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
memberId: jspb.Message.getFieldWithDefault(msg, 2, ""),
balance: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
balanceBota: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
balanceSum: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
createdAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
updatedAt: jspb.Message.getFieldWithDefault(msg, 7, 0),
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.bet.beteran.member_balance.MemberBalance}
*/
proto.bet.beteran.member_balance.MemberBalance.deserializeBinary = function (
bytes
) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.bet.beteran.member_balance.MemberBalance();
return proto.bet.beteran.member_balance.MemberBalance.deserializeBinaryFromReader(
msg,
reader
);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.bet.beteran.member_balance.MemberBalance} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.bet.beteran.member_balance.MemberBalance}
*/
proto.bet.beteran.member_balance.MemberBalance.deserializeBinaryFromReader =
function (msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setMemberId(value);
break;
case 3:
var value = /** @type {number} */ (reader.readDouble());
msg.setBalance(value);
break;
case 4:
var value = /** @type {number} */ (reader.readDouble());
msg.setBalanceBota(value);
break;
case 5:
var value = /** @type {number} */ (reader.readDouble());
msg.setBalanceSum(value);
break;
case 6:
var value = /** @type {number} */ (reader.readUint64());
msg.setCreatedAt(value);
break;
case 7:
var value = /** @type {number} */ (reader.readUint64());
msg.setUpdatedAt(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter();
proto.bet.beteran.member_balance.MemberBalance.serializeBinaryToWriter(
this,
writer
);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.bet.beteran.member_balance.MemberBalance} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.bet.beteran.member_balance.MemberBalance.serializeBinaryToWriter =
function (message, writer) {
var f = undefined;
f = message.getId();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getMemberId();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getBalance();
if (f !== 0.0) {
writer.writeDouble(3, f);
}
f = message.getBalanceBota();
if (f !== 0.0) {
writer.writeDouble(4, f);
}
f = message.getBalanceSum();
if (f !== 0.0) {
writer.writeDouble(5, f);
}
f = message.getCreatedAt();
if (f !== 0) {
writer.writeUint64(6, f);
}
f = message.getUpdatedAt();
if (f !== 0) {
writer.writeUint64(7, f);
}
};
/**
* optional string id = 1;
* @return {string}
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.getId = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.bet.beteran.member_balance.MemberBalance} returns this
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.setId = function (
value
) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string member_id = 2;
* @return {string}
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.getMemberId =
function () {
return /** @type {string} */ (
jspb.Message.getFieldWithDefault(this, 2, "")
);
};
/**
* @param {string} value
* @return {!proto.bet.beteran.member_balance.MemberBalance} returns this
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.setMemberId =
function (value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional double balance = 3;
* @return {number}
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.getBalance =
function () {
return /** @type {number} */ (
jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)
);
};
/**
* @param {number} value
* @return {!proto.bet.beteran.member_balance.MemberBalance} returns this
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.setBalance = function (
value
) {
return jspb.Message.setProto3FloatField(this, 3, value);
};
/**
* optional double balance_bota = 4;
* @return {number}
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.getBalanceBota =
function () {
return /** @type {number} */ (
jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)
);
};
/**
* @param {number} value
* @return {!proto.bet.beteran.member_balance.MemberBalance} returns this
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.setBalanceBota =
function (value) {
return jspb.Message.setProto3FloatField(this, 4, value);
};
/**
* optional double balance_sum = 5;
* @return {number}
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.getBalanceSum =
function () {
return /** @type {number} */ (
jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)
);
};
/**
* @param {number} value
* @return {!proto.bet.beteran.member_balance.MemberBalance} returns this
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.setBalanceSum =
function (value) {
return jspb.Message.setProto3FloatField(this, 5, value);
};
/**
* optional uint64 created_at = 6;
* @return {number}
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.getCreatedAt =
function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.bet.beteran.member_balance.MemberBalance} returns this
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.setCreatedAt =
function (value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
/**
* optional uint64 updated_at = 7;
* @return {number}
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.getUpdatedAt =
function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/**
* @param {number} value
* @return {!proto.bet.beteran.member_balance.MemberBalance} returns this
*/
proto.bet.beteran.member_balance.MemberBalance.prototype.setUpdatedAt =
function (value) {
return jspb.Message.setProto3IntField(this, 7, value);
};
goog.object.extend(exports, proto.bet.beteran.member_balance);

View File

@ -8,6 +8,7 @@ import * as models_member_class_pb from '../models/member_class_pb';
import * as models_member_level_pb from '../models/member_level_pb';
import * as models_member_game_setting_pb from '../models/member_game_setting_pb';
import * as models_member_settlement_setting_pb from '../models/member_settlement_setting_pb';
import * as models_member_balance_pb from '../models/member_balance_pb';
export class Member extends jspb.Message {
getId(): string;
@ -187,6 +188,11 @@ export class MemberModel extends jspb.Message {
value?: models_member_settlement_setting_pb.MemberSettlementSetting
): void;
hasMemberBalance(): boolean;
clearMemberBalance(): void;
getMemberBalance(): models_member_balance_pb.MemberBalance | undefined;
setMemberBalance(value?: models_member_balance_pb.MemberBalance): void;
hasLastSigninedIp(): boolean;
clearLastSigninedIp(): void;
getLastSigninedIp(): string;
@ -246,6 +252,7 @@ export namespace MemberModel {
stateChangedAt: number;
memberGameSetting?: models_member_game_setting_pb.MemberGameSetting.AsObject;
memberSettlementSetting?: models_member_settlement_setting_pb.MemberSettlementSetting.AsObject;
memberBalance?: models_member_balance_pb.MemberBalance.AsObject;
lastSigninedIp: string;
lastSigninedAt: number;
createdAt: number;

View File

@ -29,6 +29,8 @@ var models_member_game_setting_pb = require("../models/member_game_setting_pb.js
goog.object.extend(proto, models_member_game_setting_pb);
var models_member_settlement_setting_pb = require("../models/member_settlement_setting_pb.js");
goog.object.extend(proto, models_member_settlement_setting_pb);
var models_member_balance_pb = require("../models/member_balance_pb.js");
goog.object.extend(proto, models_member_balance_pb);
goog.exportSymbol("proto.bet.beteran.member.Member", null, global);
goog.exportSymbol("proto.bet.beteran.member.MemberModel", null, global);
goog.exportSymbol("proto.bet.beteran.member.MemberState", null, global);
@ -774,11 +776,14 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
includeInstance,
f
),
lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 16, ""),
lastSigninedAt: jspb.Message.getFieldWithDefault(msg, 17, 0),
createdAt: jspb.Message.getFieldWithDefault(msg, 18, 0),
updatedAt: jspb.Message.getFieldWithDefault(msg, 19, 0),
deletedAt: jspb.Message.getFieldWithDefault(msg, 20, 0),
memberBalance:
(f = msg.getMemberBalance()) &&
models_member_balance_pb.MemberBalance.toObject(includeInstance, f),
lastSigninedIp: jspb.Message.getFieldWithDefault(msg, 17, ""),
lastSigninedAt: jspb.Message.getFieldWithDefault(msg, 18, 0),
createdAt: jspb.Message.getFieldWithDefault(msg, 19, 0),
updatedAt: jspb.Message.getFieldWithDefault(msg, 20, 0),
deletedAt: jspb.Message.getFieldWithDefault(msg, 21, 0),
};
if (includeInstance) {
@ -920,22 +925,30 @@ proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function (
msg.setMemberSettlementSetting(value);
break;
case 16:
var value = new models_member_balance_pb.MemberBalance();
reader.readMessage(
value,
models_member_balance_pb.MemberBalance.deserializeBinaryFromReader
);
msg.setMemberBalance(value);
break;
case 17:
var value = /** @type {string} */ (reader.readString());
msg.setLastSigninedIp(value);
break;
case 17:
case 18:
var value = /** @type {number} */ (reader.readUint64());
msg.setLastSigninedAt(value);
break;
case 18:
case 19:
var value = /** @type {number} */ (reader.readUint64());
msg.setCreatedAt(value);
break;
case 19:
case 20:
var value = /** @type {number} */ (reader.readUint64());
msg.setUpdatedAt(value);
break;
case 20:
case 21:
var value = /** @type {number} */ (reader.readUint64());
msg.setDeletedAt(value);
break;
@ -1055,26 +1068,34 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function (
.serializeBinaryToWriter
);
}
f = /** @type {string} */ (jspb.Message.getField(message, 16));
f = message.getMemberBalance();
if (f != null) {
writer.writeString(16, f);
writer.writeMessage(
16,
f,
models_member_balance_pb.MemberBalance.serializeBinaryToWriter
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 17));
f = /** @type {string} */ (jspb.Message.getField(message, 17));
if (f != null) {
writer.writeUint64(17, f);
writer.writeString(17, f);
}
f = /** @type {number} */ (jspb.Message.getField(message, 18));
if (f != null) {
writer.writeUint64(18, f);
}
f = message.getCreatedAt();
if (f !== 0) {
writer.writeUint64(18, f);
writer.writeUint64(19, f);
}
f = message.getUpdatedAt();
if (f !== 0) {
writer.writeUint64(19, f);
}
f = /** @type {number} */ (jspb.Message.getField(message, 20));
if (f != null) {
writer.writeUint64(20, f);
}
f = /** @type {number} */ (jspb.Message.getField(message, 21));
if (f != null) {
writer.writeUint64(21, f);
}
};
/**
@ -1546,11 +1567,52 @@ proto.bet.beteran.member.MemberModel.prototype.hasMemberSettlementSetting =
};
/**
* optional string last_signined_ip = 16;
* optional bet.beteran.member_balance.MemberBalance member_balance = 16;
* @return {?proto.bet.beteran.member_balance.MemberBalance}
*/
proto.bet.beteran.member.MemberModel.prototype.getMemberBalance = function () {
return /** @type{?proto.bet.beteran.member_balance.MemberBalance} */ (
jspb.Message.getWrapperField(
this,
models_member_balance_pb.MemberBalance,
16
)
);
};
/**
* @param {?proto.bet.beteran.member_balance.MemberBalance|undefined} value
* @return {!proto.bet.beteran.member.MemberModel} returns this
*/
proto.bet.beteran.member.MemberModel.prototype.setMemberBalance = function (
value
) {
return jspb.Message.setWrapperField(this, 16, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.bet.beteran.member.MemberModel} returns this
*/
proto.bet.beteran.member.MemberModel.prototype.clearMemberBalance =
function () {
return this.setMemberBalance(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.bet.beteran.member.MemberModel.prototype.hasMemberBalance = function () {
return jspb.Message.getField(this, 16) != null;
};
/**
* optional string last_signined_ip = 17;
* @return {string}
*/
proto.bet.beteran.member.MemberModel.prototype.getLastSigninedIp = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
};
/**
@ -1560,7 +1622,7 @@ proto.bet.beteran.member.MemberModel.prototype.getLastSigninedIp = function () {
proto.bet.beteran.member.MemberModel.prototype.setLastSigninedIp = function (
value
) {
return jspb.Message.setField(this, 16, value);
return jspb.Message.setField(this, 17, value);
};
/**
@ -1569,7 +1631,7 @@ proto.bet.beteran.member.MemberModel.prototype.setLastSigninedIp = function (
*/
proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedIp =
function () {
return jspb.Message.setField(this, 16, undefined);
return jspb.Message.setField(this, 17, undefined);
};
/**
@ -1577,15 +1639,15 @@ proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedIp =
* @return {boolean}
*/
proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedIp = function () {
return jspb.Message.getField(this, 16) != null;
return jspb.Message.getField(this, 17) != null;
};
/**
* optional uint64 last_signined_at = 17;
* optional uint64 last_signined_at = 18;
* @return {number}
*/
proto.bet.beteran.member.MemberModel.prototype.getLastSigninedAt = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
};
/**
@ -1595,7 +1657,7 @@ proto.bet.beteran.member.MemberModel.prototype.getLastSigninedAt = function () {
proto.bet.beteran.member.MemberModel.prototype.setLastSigninedAt = function (
value
) {
return jspb.Message.setField(this, 17, value);
return jspb.Message.setField(this, 18, value);
};
/**
@ -1604,7 +1666,7 @@ proto.bet.beteran.member.MemberModel.prototype.setLastSigninedAt = function (
*/
proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedAt =
function () {
return jspb.Message.setField(this, 17, undefined);
return jspb.Message.setField(this, 18, undefined);
};
/**
@ -1612,30 +1674,14 @@ proto.bet.beteran.member.MemberModel.prototype.clearLastSigninedAt =
* @return {boolean}
*/
proto.bet.beteran.member.MemberModel.prototype.hasLastSigninedAt = function () {
return jspb.Message.getField(this, 17) != null;
return jspb.Message.getField(this, 18) != null;
};
/**
* optional uint64 created_at = 18;
* optional uint64 created_at = 19;
* @return {number}
*/
proto.bet.beteran.member.MemberModel.prototype.getCreatedAt = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
};
/**
* @param {number} value
* @return {!proto.bet.beteran.member.MemberModel} returns this
*/
proto.bet.beteran.member.MemberModel.prototype.setCreatedAt = function (value) {
return jspb.Message.setProto3IntField(this, 18, value);
};
/**
* optional uint64 updated_at = 19;
* @return {number}
*/
proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
};
@ -1643,24 +1689,40 @@ proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () {
* @param {number} value
* @return {!proto.bet.beteran.member.MemberModel} returns this
*/
proto.bet.beteran.member.MemberModel.prototype.setUpdatedAt = function (value) {
proto.bet.beteran.member.MemberModel.prototype.setCreatedAt = function (value) {
return jspb.Message.setProto3IntField(this, 19, value);
};
/**
* optional uint64 deleted_at = 20;
* optional uint64 updated_at = 20;
* @return {number}
*/
proto.bet.beteran.member.MemberModel.prototype.getDeletedAt = function () {
proto.bet.beteran.member.MemberModel.prototype.getUpdatedAt = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
};
/**
* @param {number} value
* @return {!proto.bet.beteran.member.MemberModel} returns this
*/
proto.bet.beteran.member.MemberModel.prototype.setUpdatedAt = function (value) {
return jspb.Message.setProto3IntField(this, 20, value);
};
/**
* optional uint64 deleted_at = 21;
* @return {number}
*/
proto.bet.beteran.member.MemberModel.prototype.getDeletedAt = function () {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
};
/**
* @param {number} value
* @return {!proto.bet.beteran.member.MemberModel} returns this
*/
proto.bet.beteran.member.MemberModel.prototype.setDeletedAt = function (value) {
return jspb.Message.setField(this, 20, value);
return jspb.Message.setField(this, 21, value);
};
/**
@ -1668,7 +1730,7 @@ proto.bet.beteran.member.MemberModel.prototype.setDeletedAt = function (value) {
* @return {!proto.bet.beteran.member.MemberModel} returns this
*/
proto.bet.beteran.member.MemberModel.prototype.clearDeletedAt = function () {
return jspb.Message.setField(this, 20, undefined);
return jspb.Message.setField(this, 21, undefined);
};
/**
@ -1676,7 +1738,7 @@ proto.bet.beteran.member.MemberModel.prototype.clearDeletedAt = function () {
* @return {boolean}
*/
proto.bet.beteran.member.MemberModel.prototype.hasDeletedAt = function () {
return jspb.Message.getField(this, 20) != null;
return jspb.Message.getField(this, 21) != null;
};
/**