refactoring
This commit is contained in:
parent
3046c848a4
commit
7df836c4d1
|
@ -21,13 +21,6 @@ import { environment } from 'environments/environment';
|
|||
|
||||
import { BankModule } from 'app/modules/polyglot/bank/bank.module';
|
||||
import { IdentityModule } from 'app/modules/polyglot/identity/identity.module';
|
||||
import { MemberBankAccountModule } from 'app/modules/polyglot/member_bank_account/member_bank_account.module';
|
||||
import { MemberBankDepositModule } from 'app/modules/polyglot/member_bank_deposit/member_bank_deposit.module';
|
||||
import { MemberBankWithdrawModule } from 'app/modules/polyglot/member_bank_withdraw/member_bank_withdraw.module';
|
||||
import { MemberClassModule } from 'app/modules/polyglot/member_class/member_class.module';
|
||||
import { MemberLevelModule } from 'app/modules/polyglot/member_level/member_level.module';
|
||||
import { MemberModule } from 'app/modules/polyglot/member/member.module';
|
||||
import { SiteModule } from 'app/modules/polyglot/site/site.module';
|
||||
|
||||
import { ApiModule } from 'app/modules/polyglot/api/api.module';
|
||||
|
||||
|
@ -62,13 +55,6 @@ const routerConfig: ExtraOptions = {
|
|||
|
||||
BankModule.forRoot(),
|
||||
IdentityModule.forRoot(),
|
||||
MemberBankAccountModule.forRoot(),
|
||||
MemberBankDepositModule.forRoot(),
|
||||
MemberBankWithdrawModule.forRoot(),
|
||||
MemberClassModule.forRoot(),
|
||||
MemberLevelModule.forRoot(),
|
||||
MemberModule.forRoot(),
|
||||
SiteModule.forRoot(),
|
||||
|
||||
ApiModule.forRoot(),
|
||||
],
|
||||
|
|
52
src/app/modules/polyglot/api/services/game.service.ts
Normal file
52
src/app/modules/polyglot/api/services/game.service.ts
Normal file
|
@ -0,0 +1,52 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||
|
||||
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||
|
||||
import {
|
||||
ListGamesRequest,
|
||||
ListGamesResponse,
|
||||
} from 'app/modules/proto/c2se/api/game_pb';
|
||||
import { SUBJECT_LIST_GAMES } from 'app/modules/proto/c2se/frontend/api/game_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class GameService {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
constructor(private __natsService: NatsService) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Accessors
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
listGames(vendorId: number): Promise<ListGamesResponse.Result> {
|
||||
return new Promise<ListGamesResponse.Result>((resolve, reject) => {
|
||||
let search = new ListGamesRequest.Search();
|
||||
search.setVendorId(vendorId);
|
||||
let req = new ListGamesRequest();
|
||||
req.setSearch(search);
|
||||
|
||||
this.__natsService
|
||||
.request<ListGamesResponse.Result>(
|
||||
SUBJECT_LIST_GAMES,
|
||||
req.serializeBinary(),
|
||||
ListGamesResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getGamesList());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
import { Type } from '@angular/core';
|
||||
|
||||
import { ApiService } from './api.service';
|
||||
import { VendorService } from './vendor.service';
|
||||
import { GameService } from './game.service';
|
||||
|
||||
export const SERVICES: Type<any>[] = [ApiService];
|
||||
export const SERVICES: Type<any>[] = [VendorService, GameService];
|
||||
|
|
|
@ -7,12 +7,12 @@ import {
|
|||
ListVendorsRequest,
|
||||
ListVendorsResponse,
|
||||
} from 'app/modules/proto/c2se/api/vendor_pb';
|
||||
import { SUBJECT_LIST_VENDORS } from 'app/modules/proto/c2se/backend/api/vendor_pb';
|
||||
import { SUBJECT_LIST_VENDORS } from 'app/modules/proto/c2se/frontend/api/vendor_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ApiService {
|
||||
export class VendorService {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
|
@ -26,7 +26,7 @@ export class ApiService {
|
|||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
listBanks(): Promise<ListVendorsResponse.Result> {
|
||||
listVendors(): Promise<ListVendorsResponse.Result> {
|
||||
return new Promise<ListVendorsResponse.Result>((resolve, reject) => {
|
||||
let req = new ListVendorsRequest();
|
||||
|
|
@ -1,28 +1,18 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||
import * as nats from 'nats.ws';
|
||||
|
||||
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||
|
||||
import {
|
||||
ListBanksRequest,
|
||||
ListBanksResponse,
|
||||
CreateBankRequest,
|
||||
CreateBankResponse,
|
||||
UpdateBankRequest,
|
||||
UpdateBankResponse,
|
||||
DeleteBankRequest,
|
||||
DeleteBankResponse,
|
||||
GetBankResponse,
|
||||
GetBankRequest,
|
||||
} from 'app/modules/proto/c2se/bank_pb';
|
||||
import {
|
||||
SUBJECT_LIST_BANKS,
|
||||
SUBJECT_CREATE_BANK,
|
||||
SUBJECT_UPDATE_BANK,
|
||||
SUBJECT_DELETE_BANK,
|
||||
SUBJECT_GET_BANK,
|
||||
} from 'app/modules/proto/c2se/backend/bank_pb';
|
||||
} from 'app/modules/proto/c2se/frontend/bank_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
|
@ -41,27 +31,6 @@ export class BankService {
|
|||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
createBank(): Promise<CreateBankResponse.Result> {
|
||||
return new Promise<CreateBankResponse.Result>((resolve, reject) => {
|
||||
let req = new CreateBankRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<CreateBankResponse.Result>(
|
||||
SUBJECT_CREATE_BANK,
|
||||
req.serializeBinary(),
|
||||
CreateBankResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getBank());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
listBanks(): Promise<ListBanksResponse.Result> {
|
||||
return new Promise<ListBanksResponse.Result>((resolve, reject) => {
|
||||
let req = new ListBanksRequest();
|
||||
|
@ -104,45 +73,4 @@ export class BankService {
|
|||
});
|
||||
}
|
||||
|
||||
updateBank(): Promise<UpdateBankResponse.Result> {
|
||||
return new Promise<UpdateBankResponse.Result>((resolve, reject) => {
|
||||
let req = new UpdateBankRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<UpdateBankResponse.Result>(
|
||||
SUBJECT_UPDATE_BANK,
|
||||
req.serializeBinary(),
|
||||
UpdateBankResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getBank());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
deleteBank(): Promise<DeleteBankResponse.Result> {
|
||||
return new Promise<DeleteBankResponse.Result>((resolve, reject) => {
|
||||
let req = new DeleteBankRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<DeleteBankResponse.Result>(
|
||||
SUBJECT_DELETE_BANK,
|
||||
req.serializeBinary(),
|
||||
DeleteBankResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result);
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||
import * as nats from 'nats.ws';
|
||||
|
||||
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||
|
||||
|
@ -19,7 +18,7 @@ import {
|
|||
SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION,
|
||||
SUBJECT_CAPTCHA,
|
||||
SUBJECT_SIGNIN,
|
||||
} from 'app/modules/proto/c2se/backend/identity_pb';
|
||||
} from 'app/modules/proto/c2se/frontend/identity_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
|
||||
import { SERVICES } from './services';
|
||||
|
||||
@NgModule({})
|
||||
export class MemberRootModule {}
|
||||
|
||||
@NgModule({})
|
||||
export class MemberModule {
|
||||
public static forRoot(): ModuleWithProviders<MemberRootModule> {
|
||||
return {
|
||||
ngModule: MemberRootModule,
|
||||
providers: [...SERVICES],
|
||||
};
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
import { Type } from '@angular/core';
|
||||
|
||||
import { MemberService } from './member.service';
|
||||
|
||||
export const SERVICES: Type<any>[] = [MemberService];
|
|
@ -1,183 +0,0 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||
import * as nats from 'nats.ws';
|
||||
|
||||
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||
|
||||
import {
|
||||
ListMembersRequest,
|
||||
ListMembersResponse,
|
||||
GetMemberByUsernameRequest,
|
||||
GetMemberByUsernameResponse,
|
||||
GetMemberRequest,
|
||||
GetMemberResponse,
|
||||
UpdateMemberRequest,
|
||||
UpdateMemberResponse,
|
||||
CreateMemberResponse,
|
||||
CreateMemberRequest,
|
||||
} from 'app/modules/proto/c2se/member_pb';
|
||||
import {
|
||||
SUBJECT_LIST_MEMBERS,
|
||||
SUBJECT_GET_MEMBER,
|
||||
SUBJECT_GET_MEMBER_BY_USERNAME,
|
||||
SUBJECT_UPDATE_MEMBER,
|
||||
SUBJECT_CREATE_MEMBER,
|
||||
} from 'app/modules/proto/c2se/backend/member_pb';
|
||||
import { Pagination } from 'app/modules/proto/protobuf/pagination_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class MemberService {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
constructor(private __natsService: NatsService) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Accessors
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
listMembers(req?: ListMembersRequest): Promise<ListMembersResponse.Result> {
|
||||
return new Promise<ListMembersResponse.Result>((resolve, reject) => {
|
||||
if (!req) {
|
||||
req = new ListMembersRequest();
|
||||
}
|
||||
|
||||
if (!req.hasPagination()) {
|
||||
let paging = new Pagination();
|
||||
paging.setPageSize(10);
|
||||
paging.setPage(0);
|
||||
|
||||
req.setPagination(paging);
|
||||
}
|
||||
|
||||
this.__natsService
|
||||
.request<ListMembersResponse.Result>(
|
||||
SUBJECT_LIST_MEMBERS,
|
||||
req.serializeBinary(),
|
||||
ListMembersResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMembersList());
|
||||
resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
getMember(id: string): Promise<GetMemberResponse.Result> {
|
||||
return new Promise<GetMemberResponse.Result>((resolve, reject) => {
|
||||
let req = new GetMemberRequest();
|
||||
req.setId(id);
|
||||
|
||||
this.__natsService
|
||||
.request<GetMemberResponse.Result>(
|
||||
SUBJECT_GET_MEMBER,
|
||||
req.serializeBinary(),
|
||||
GetMemberResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMember());
|
||||
resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
getMemberByUsername(): Promise<GetMemberByUsernameResponse.Result> {
|
||||
return new Promise<GetMemberByUsernameResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new GetMemberByUsernameRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<GetMemberByUsernameResponse.Result>(
|
||||
SUBJECT_GET_MEMBER_BY_USERNAME,
|
||||
req.serializeBinary(),
|
||||
GetMemberByUsernameResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
updateMember(
|
||||
id: string,
|
||||
siteId: string,
|
||||
memberLevelId: string,
|
||||
password: string,
|
||||
mobilePhoneNumber: string
|
||||
): Promise<UpdateMemberResponse.Result> {
|
||||
return new Promise<UpdateMemberResponse.Result>((resolve, reject) => {
|
||||
let req = new UpdateMemberRequest();
|
||||
req.setId(id);
|
||||
|
||||
if (!!siteId) {
|
||||
req.setSiteId(siteId);
|
||||
}
|
||||
if (!!memberLevelId) {
|
||||
req.setMemberLevelId(memberLevelId);
|
||||
}
|
||||
if (!!password) {
|
||||
req.setPassword(password);
|
||||
}
|
||||
if (!!mobilePhoneNumber) {
|
||||
req.setMobilePhoneNumber(mobilePhoneNumber);
|
||||
}
|
||||
|
||||
this.__natsService
|
||||
.request<UpdateMemberResponse.Result>(
|
||||
SUBJECT_UPDATE_MEMBER,
|
||||
req.serializeBinary(),
|
||||
UpdateMemberResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('updateMember Result: ', result);
|
||||
resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// siteId: 8429a7ab-b9de-400b-a209-28ff46e22bec
|
||||
// classId: 4b014ef5-3bab-4413-aaf9-b0040a70ec77
|
||||
// levelId: c56231ac-2120-4a81-a30a-5d41fafb6c57
|
||||
|
||||
createMember(req: CreateMemberRequest): Promise<CreateMemberResponse.Result> {
|
||||
return new Promise<CreateMemberResponse.Result>((resolve, reject) => {
|
||||
this.__natsService
|
||||
.request<CreateMemberResponse.Result>(
|
||||
SUBJECT_CREATE_MEMBER,
|
||||
req.serializeBinary(),
|
||||
CreateMemberResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('createMember Result: ', result);
|
||||
resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
|
||||
import { SERVICES } from './services';
|
||||
|
||||
@NgModule({})
|
||||
export class MemberBankAccountRootModule {}
|
||||
|
||||
@NgModule({})
|
||||
export class MemberBankAccountModule {
|
||||
public static forRoot(): ModuleWithProviders<MemberBankAccountRootModule> {
|
||||
return {
|
||||
ngModule: MemberBankAccountRootModule,
|
||||
providers: [...SERVICES],
|
||||
};
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
import { Type } from '@angular/core';
|
||||
|
||||
import { MemberBankAccountService } from './member_bank_account.service';
|
||||
|
||||
export const SERVICES: Type<any>[] = [MemberBankAccountService];
|
|
@ -1,158 +0,0 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||
import * as nats from 'nats.ws';
|
||||
|
||||
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||
|
||||
import {
|
||||
ListMemberBankAccountsRequest,
|
||||
ListMemberBankAccountsResponse,
|
||||
CreateMemberBankAccountRequest,
|
||||
CreateMemberBankAccountResponse,
|
||||
UpdateMemberBankAccountRequest,
|
||||
UpdateMemberBankAccountResponse,
|
||||
DeleteMemberBankAccountRequest,
|
||||
DeleteMemberBankAccountResponse,
|
||||
GetMemberBankAccountResponse,
|
||||
GetMemberBankAccountRequest,
|
||||
} from 'app/modules/proto/c2se/member_bank_account_pb';
|
||||
import {
|
||||
SUBJECT_LIST_MEMBER_BANK_ACCOUNTS,
|
||||
SUBJECT_CREATE_MEMBER_BANK_ACCOUNT,
|
||||
SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT,
|
||||
SUBJECT_DELETE_MEMBER_BANK_ACCOUNT,
|
||||
SUBJECT_GET_MEMBER_BANK_ACCOUNT,
|
||||
} from 'app/modules/proto/c2se/backend/member_bank_account_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class MemberBankAccountService {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
constructor(private __natsService: NatsService) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Accessors
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
createMemberBankAccount(): Promise<CreateMemberBankAccountResponse.Result> {
|
||||
return new Promise<CreateMemberBankAccountResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new CreateMemberBankAccountRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<CreateMemberBankAccountResponse.Result>(
|
||||
SUBJECT_CREATE_MEMBER_BANK_ACCOUNT,
|
||||
req.serializeBinary(),
|
||||
CreateMemberBankAccountResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankAccount());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
listMemberBankAccounts(): Promise<ListMemberBankAccountsResponse.Result> {
|
||||
return new Promise<ListMemberBankAccountsResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new ListMemberBankAccountsRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<ListMemberBankAccountsResponse.Result>(
|
||||
SUBJECT_LIST_MEMBER_BANK_ACCOUNTS,
|
||||
req.serializeBinary(),
|
||||
ListMemberBankAccountsResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankAccountsList());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
getMemberBankAccount(): Promise<GetMemberBankAccountResponse.Result> {
|
||||
return new Promise<GetMemberBankAccountResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new GetMemberBankAccountRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<GetMemberBankAccountResponse.Result>(
|
||||
SUBJECT_GET_MEMBER_BANK_ACCOUNT,
|
||||
req.serializeBinary(),
|
||||
GetMemberBankAccountResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankAccount());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
updateMemberBankAccount(): Promise<UpdateMemberBankAccountResponse.Result> {
|
||||
return new Promise<UpdateMemberBankAccountResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new UpdateMemberBankAccountRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<UpdateMemberBankAccountResponse.Result>(
|
||||
SUBJECT_UPDATE_MEMBER_BANK_ACCOUNT,
|
||||
req.serializeBinary(),
|
||||
UpdateMemberBankAccountResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankAccount());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
deleteMemberBankAccount(): Promise<DeleteMemberBankAccountResponse.Result> {
|
||||
return new Promise<DeleteMemberBankAccountResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new DeleteMemberBankAccountRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<DeleteMemberBankAccountResponse.Result>(
|
||||
SUBJECT_DELETE_MEMBER_BANK_ACCOUNT,
|
||||
req.serializeBinary(),
|
||||
DeleteMemberBankAccountResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result);
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
|
||||
import { SERVICES } from './services';
|
||||
|
||||
@NgModule({})
|
||||
export class MemberBankDepositRootModule {}
|
||||
|
||||
@NgModule({})
|
||||
export class MemberBankDepositModule {
|
||||
public static forRoot(): ModuleWithProviders<MemberBankDepositRootModule> {
|
||||
return {
|
||||
ngModule: MemberBankDepositRootModule,
|
||||
providers: [...SERVICES],
|
||||
};
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
import { Type } from '@angular/core';
|
||||
|
||||
import { MemberBankDepositService } from './member_bank_deposit.service';
|
||||
|
||||
export const SERVICES: Type<any>[] = [MemberBankDepositService];
|
|
@ -1,184 +0,0 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||
import * as nats from 'nats.ws';
|
||||
|
||||
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||
|
||||
import {
|
||||
ListMemberBankDepositsRequest,
|
||||
ListMemberBankDepositsResponse,
|
||||
CreateMemberBankDepositRequest,
|
||||
CreateMemberBankDepositResponse,
|
||||
UpdateMemberBankDepositRequest,
|
||||
UpdateMemberBankDepositResponse,
|
||||
DeleteMemberBankDepositRequest,
|
||||
DeleteMemberBankDepositResponse,
|
||||
GetMemberBankDepositResponse,
|
||||
GetMemberBankDepositRequest,
|
||||
UpdateMemberBankDepositForStateResponse,
|
||||
UpdateMemberBankDepositForStateRequest,
|
||||
} from 'app/modules/proto/c2se/member_bank_deposit_pb';
|
||||
import {
|
||||
SUBJECT_LIST_MEMBER_BANK_DEPOSITS,
|
||||
SUBJECT_CREATE_MEMBER_BANK_DEPOSIT,
|
||||
SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT,
|
||||
SUBJECT_DELETE_MEMBER_BANK_DEPOSIT,
|
||||
SUBJECT_GET_MEMBER_BANK_DEPOSIT,
|
||||
SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE,
|
||||
} from 'app/modules/proto/c2se/backend/member_bank_deposit_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class MemberBankDepositService {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
constructor(private __natsService: NatsService) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Accessors
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
createMemberBankDeposit(): Promise<CreateMemberBankDepositResponse.Result> {
|
||||
return new Promise<CreateMemberBankDepositResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new CreateMemberBankDepositRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<CreateMemberBankDepositResponse.Result>(
|
||||
SUBJECT_CREATE_MEMBER_BANK_DEPOSIT,
|
||||
req.serializeBinary(),
|
||||
CreateMemberBankDepositResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankDeposit());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
listMemberBankDeposits(): Promise<ListMemberBankDepositsResponse.Result> {
|
||||
return new Promise<ListMemberBankDepositsResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new ListMemberBankDepositsRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<ListMemberBankDepositsResponse.Result>(
|
||||
SUBJECT_LIST_MEMBER_BANK_DEPOSITS,
|
||||
req.serializeBinary(),
|
||||
ListMemberBankDepositsResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankDepositsList());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
getMemberBankDeposit(): Promise<GetMemberBankDepositResponse.Result> {
|
||||
return new Promise<GetMemberBankDepositResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new GetMemberBankDepositRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<GetMemberBankDepositResponse.Result>(
|
||||
SUBJECT_GET_MEMBER_BANK_DEPOSIT,
|
||||
req.serializeBinary(),
|
||||
GetMemberBankDepositResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankDeposit());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
updateMemberBankDeposit(): Promise<UpdateMemberBankDepositResponse.Result> {
|
||||
return new Promise<UpdateMemberBankDepositResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new UpdateMemberBankDepositRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<UpdateMemberBankDepositResponse.Result>(
|
||||
SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT,
|
||||
req.serializeBinary(),
|
||||
UpdateMemberBankDepositResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankDeposit());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
updateMemberBankDepositForState(): Promise<UpdateMemberBankDepositForStateResponse.Result> {
|
||||
return new Promise<UpdateMemberBankDepositForStateResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new UpdateMemberBankDepositForStateRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<UpdateMemberBankDepositForStateResponse.Result>(
|
||||
SUBJECT_UPDATE_MEMBER_BANK_DEPOSIT_FOR_STATE,
|
||||
req.serializeBinary(),
|
||||
UpdateMemberBankDepositForStateResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankDeposit());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
deleteMemberBankDeposit(): Promise<DeleteMemberBankDepositResponse.Result> {
|
||||
return new Promise<DeleteMemberBankDepositResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new DeleteMemberBankDepositRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<DeleteMemberBankDepositResponse.Result>(
|
||||
SUBJECT_DELETE_MEMBER_BANK_DEPOSIT,
|
||||
req.serializeBinary(),
|
||||
DeleteMemberBankDepositResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result);
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
|
||||
import { SERVICES } from './services';
|
||||
|
||||
@NgModule({})
|
||||
export class MemberBankWithdrawRootModule {}
|
||||
|
||||
@NgModule({})
|
||||
export class MemberBankWithdrawModule {
|
||||
public static forRoot(): ModuleWithProviders<MemberBankWithdrawRootModule> {
|
||||
return {
|
||||
ngModule: MemberBankWithdrawRootModule,
|
||||
providers: [...SERVICES],
|
||||
};
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
import { Type } from '@angular/core';
|
||||
|
||||
import { MemberBankWithdrawService } from './member_bank_withdraw.service';
|
||||
|
||||
export const SERVICES: Type<any>[] = [MemberBankWithdrawService];
|
|
@ -1,184 +0,0 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||
import * as nats from 'nats.ws';
|
||||
|
||||
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||
|
||||
import {
|
||||
ListMemberBankWithdrawsRequest,
|
||||
ListMemberBankWithdrawsResponse,
|
||||
CreateMemberBankWithdrawRequest,
|
||||
CreateMemberBankWithdrawResponse,
|
||||
UpdateMemberBankWithdrawRequest,
|
||||
UpdateMemberBankWithdrawResponse,
|
||||
DeleteMemberBankWithdrawRequest,
|
||||
DeleteMemberBankWithdrawResponse,
|
||||
GetMemberBankWithdrawResponse,
|
||||
GetMemberBankWithdrawRequest,
|
||||
UpdateMemberBankWithdrawForStateResponse,
|
||||
UpdateMemberBankWithdrawForStateRequest,
|
||||
} from 'app/modules/proto/c2se/member_bank_withdraw_pb';
|
||||
import {
|
||||
SUBJECT_LIST_MEMBER_BANK_WITHDRAWS,
|
||||
SUBJECT_CREATE_MEMBER_BANK_WITHDRAW,
|
||||
SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW,
|
||||
SUBJECT_DELETE_MEMBER_BANK_WITHDRAW,
|
||||
SUBJECT_GET_MEMBER_BANK_WITHDRAW,
|
||||
SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW_FOR_STATE,
|
||||
} from 'app/modules/proto/c2se/backend/member_bank_withdraw_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class MemberBankWithdrawService {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
constructor(private __natsService: NatsService) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Accessors
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
createMemberBankWithdraw(): Promise<CreateMemberBankWithdrawResponse.Result> {
|
||||
return new Promise<CreateMemberBankWithdrawResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new CreateMemberBankWithdrawRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<CreateMemberBankWithdrawResponse.Result>(
|
||||
SUBJECT_CREATE_MEMBER_BANK_WITHDRAW,
|
||||
req.serializeBinary(),
|
||||
CreateMemberBankWithdrawResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankWithdraw());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
listMemberBankWithdraws(): Promise<ListMemberBankWithdrawsResponse.Result> {
|
||||
return new Promise<ListMemberBankWithdrawsResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new ListMemberBankWithdrawsRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<ListMemberBankWithdrawsResponse.Result>(
|
||||
SUBJECT_LIST_MEMBER_BANK_WITHDRAWS,
|
||||
req.serializeBinary(),
|
||||
ListMemberBankWithdrawsResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankWithdrawsList());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
getMemberBankWithdraw(): Promise<GetMemberBankWithdrawResponse.Result> {
|
||||
return new Promise<GetMemberBankWithdrawResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new GetMemberBankWithdrawRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<GetMemberBankWithdrawResponse.Result>(
|
||||
SUBJECT_GET_MEMBER_BANK_WITHDRAW,
|
||||
req.serializeBinary(),
|
||||
GetMemberBankWithdrawResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankWithdraw());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
updateMemberBankWithdraw(): Promise<UpdateMemberBankWithdrawResponse.Result> {
|
||||
return new Promise<UpdateMemberBankWithdrawResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new UpdateMemberBankWithdrawRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<UpdateMemberBankWithdrawResponse.Result>(
|
||||
SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW,
|
||||
req.serializeBinary(),
|
||||
UpdateMemberBankWithdrawResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankWithdraw());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
updateMemberBankWithdrawForState(): Promise<UpdateMemberBankWithdrawForStateResponse.Result> {
|
||||
return new Promise<UpdateMemberBankWithdrawForStateResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new UpdateMemberBankWithdrawForStateRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<UpdateMemberBankWithdrawForStateResponse.Result>(
|
||||
SUBJECT_UPDATE_MEMBER_BANK_WITHDRAW_FOR_STATE,
|
||||
req.serializeBinary(),
|
||||
UpdateMemberBankWithdrawForStateResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberBankWithdraw());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
deleteMemberBankWithdraw(): Promise<DeleteMemberBankWithdrawResponse.Result> {
|
||||
return new Promise<DeleteMemberBankWithdrawResponse.Result>(
|
||||
(resolve, reject) => {
|
||||
let req = new DeleteMemberBankWithdrawRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<DeleteMemberBankWithdrawResponse.Result>(
|
||||
SUBJECT_DELETE_MEMBER_BANK_WITHDRAW,
|
||||
req.serializeBinary(),
|
||||
DeleteMemberBankWithdrawResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result);
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
|
||||
import { SERVICES } from './services';
|
||||
|
||||
@NgModule({})
|
||||
export class MemberClassRootModule {}
|
||||
|
||||
@NgModule({})
|
||||
export class MemberClassModule {
|
||||
public static forRoot(): ModuleWithProviders<MemberClassRootModule> {
|
||||
return {
|
||||
ngModule: MemberClassRootModule,
|
||||
providers: [...SERVICES],
|
||||
};
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
import { Type } from '@angular/core';
|
||||
|
||||
import { MemberClassService } from './member_class.service';
|
||||
|
||||
export const SERVICES: Type<any>[] = [MemberClassService];
|
|
@ -1,148 +0,0 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||
import * as nats from 'nats.ws';
|
||||
|
||||
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||
|
||||
import {
|
||||
ListMemberClassesRequest,
|
||||
ListMemberClassesResponse,
|
||||
CreateMemberClassRequest,
|
||||
CreateMemberClassResponse,
|
||||
UpdateMemberClassRequest,
|
||||
UpdateMemberClassResponse,
|
||||
DeleteMemberClassRequest,
|
||||
DeleteMemberClassResponse,
|
||||
GetMemberClassResponse,
|
||||
GetMemberClassRequest,
|
||||
} from 'app/modules/proto/c2se/member_class_pb';
|
||||
import {
|
||||
SUBJECT_LIST_MEMBER_CLASSES,
|
||||
SUBJECT_CREATE_MEMBER_CLASS,
|
||||
SUBJECT_UPDATE_MEMBER_CLASS,
|
||||
SUBJECT_DELETE_MEMBER_CLASS,
|
||||
SUBJECT_GET_MEMBER_CLASS,
|
||||
} from 'app/modules/proto/c2se/backend/member_class_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class MemberClassService {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
constructor(private __natsService: NatsService) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Accessors
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
createMemberClass(): Promise<CreateMemberClassResponse.Result> {
|
||||
return new Promise<CreateMemberClassResponse.Result>((resolve, reject) => {
|
||||
let req = new CreateMemberClassRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<CreateMemberClassResponse.Result>(
|
||||
SUBJECT_CREATE_MEMBER_CLASS,
|
||||
req.serializeBinary(),
|
||||
CreateMemberClassResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberClass());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
listMemberClasss(): Promise<ListMemberClassesResponse.Result> {
|
||||
return new Promise<ListMemberClassesResponse.Result>((resolve, reject) => {
|
||||
let req = new ListMemberClassesRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<ListMemberClassesResponse.Result>(
|
||||
SUBJECT_LIST_MEMBER_CLASSES,
|
||||
req.serializeBinary(),
|
||||
ListMemberClassesResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberClassesList());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
getMemberClass(): Promise<GetMemberClassResponse.Result> {
|
||||
return new Promise<GetMemberClassResponse.Result>((resolve, reject) => {
|
||||
let req = new GetMemberClassRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<GetMemberClassResponse.Result>(
|
||||
SUBJECT_GET_MEMBER_CLASS,
|
||||
req.serializeBinary(),
|
||||
GetMemberClassResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberClass());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
updateMemberClass(): Promise<UpdateMemberClassResponse.Result> {
|
||||
return new Promise<UpdateMemberClassResponse.Result>((resolve, reject) => {
|
||||
let req = new UpdateMemberClassRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<UpdateMemberClassResponse.Result>(
|
||||
SUBJECT_UPDATE_MEMBER_CLASS,
|
||||
req.serializeBinary(),
|
||||
UpdateMemberClassResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberClass());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
deleteMemberClass(): Promise<DeleteMemberClassResponse.Result> {
|
||||
return new Promise<DeleteMemberClassResponse.Result>((resolve, reject) => {
|
||||
let req = new DeleteMemberClassRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<DeleteMemberClassResponse.Result>(
|
||||
SUBJECT_DELETE_MEMBER_CLASS,
|
||||
req.serializeBinary(),
|
||||
DeleteMemberClassResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result);
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
|
||||
import { SERVICES } from './services';
|
||||
|
||||
@NgModule({})
|
||||
export class MemberLevelRootModule {}
|
||||
|
||||
@NgModule({})
|
||||
export class MemberLevelModule {
|
||||
public static forRoot(): ModuleWithProviders<MemberLevelRootModule> {
|
||||
return {
|
||||
ngModule: MemberLevelRootModule,
|
||||
providers: [...SERVICES],
|
||||
};
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
import { Type } from '@angular/core';
|
||||
|
||||
import { MemberLevelService } from './member_level.service';
|
||||
|
||||
export const SERVICES: Type<any>[] = [MemberLevelService];
|
|
@ -1,148 +0,0 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||
import * as nats from 'nats.ws';
|
||||
|
||||
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||
|
||||
import {
|
||||
ListMemberLevelsRequest,
|
||||
ListMemberLevelsResponse,
|
||||
CreateMemberLevelRequest,
|
||||
CreateMemberLevelResponse,
|
||||
UpdateMemberLevelRequest,
|
||||
UpdateMemberLevelResponse,
|
||||
DeleteMemberLevelRequest,
|
||||
DeleteMemberLevelResponse,
|
||||
GetMemberLevelResponse,
|
||||
GetMemberLevelRequest,
|
||||
} from 'app/modules/proto/c2se/member_level_pb';
|
||||
import {
|
||||
SUBJECT_LIST_MEMBER_LEVELS,
|
||||
SUBJECT_CREATE_MEMBER_LEVEL,
|
||||
SUBJECT_UPDATE_MEMBER_LEVEL,
|
||||
SUBJECT_DELETE_MEMBER_LEVEL,
|
||||
SUBJECT_GET_MEMBER_LEVEL,
|
||||
} from 'app/modules/proto/c2se/backend/member_level_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class MemberLevelService {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
constructor(private __natsService: NatsService) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Accessors
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
createMemberLevel(): Promise<CreateMemberLevelResponse.Result> {
|
||||
return new Promise<CreateMemberLevelResponse.Result>((resolve, reject) => {
|
||||
let req = new CreateMemberLevelRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<CreateMemberLevelResponse.Result>(
|
||||
SUBJECT_CREATE_MEMBER_LEVEL,
|
||||
req.serializeBinary(),
|
||||
CreateMemberLevelResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberLevel());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
listMemberLevels(): Promise<ListMemberLevelsResponse.Result> {
|
||||
return new Promise<ListMemberLevelsResponse.Result>((resolve, reject) => {
|
||||
let req = new ListMemberLevelsRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<ListMemberLevelsResponse.Result>(
|
||||
SUBJECT_LIST_MEMBER_LEVELS,
|
||||
req.serializeBinary(),
|
||||
ListMemberLevelsResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberLevelsList());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
getMemberLevel(): Promise<GetMemberLevelResponse.Result> {
|
||||
return new Promise<GetMemberLevelResponse.Result>((resolve, reject) => {
|
||||
let req = new GetMemberLevelRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<GetMemberLevelResponse.Result>(
|
||||
SUBJECT_GET_MEMBER_LEVEL,
|
||||
req.serializeBinary(),
|
||||
GetMemberLevelResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberLevel());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
updateMemberLevel(): Promise<UpdateMemberLevelResponse.Result> {
|
||||
return new Promise<UpdateMemberLevelResponse.Result>((resolve, reject) => {
|
||||
let req = new UpdateMemberLevelRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<UpdateMemberLevelResponse.Result>(
|
||||
SUBJECT_UPDATE_MEMBER_LEVEL,
|
||||
req.serializeBinary(),
|
||||
UpdateMemberLevelResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getMemberLevel());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
deleteMemberLevel(): Promise<DeleteMemberLevelResponse.Result> {
|
||||
return new Promise<DeleteMemberLevelResponse.Result>((resolve, reject) => {
|
||||
let req = new DeleteMemberLevelRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<DeleteMemberLevelResponse.Result>(
|
||||
SUBJECT_DELETE_MEMBER_LEVEL,
|
||||
req.serializeBinary(),
|
||||
DeleteMemberLevelResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result);
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
import { Type } from '@angular/core';
|
||||
|
||||
import { SiteService } from './site.service';
|
||||
|
||||
export const SERVICES: Type<any>[] = [SiteService];
|
|
@ -1,82 +0,0 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { NatsService } from 'app/core/nats/services/nats.service';
|
||||
import * as nats from 'nats.ws';
|
||||
|
||||
import { Error } from 'app/modules/proto/protobuf/rpc_pb';
|
||||
|
||||
import {
|
||||
ListSitesRequest,
|
||||
ListSitesResponse,
|
||||
CreateSiteRequest,
|
||||
CreateSiteResponse,
|
||||
UpdateSiteRequest,
|
||||
UpdateSiteResponse,
|
||||
DeleteSiteRequest,
|
||||
DeleteSiteResponse,
|
||||
} from 'app/modules/proto/c2se/site_pb';
|
||||
import {
|
||||
SUBJECT_LIST_SITES,
|
||||
SUBJECT_CREATE_SITE,
|
||||
SUBJECT_UPDATE_SITE,
|
||||
SUBJECT_DELETE_SITE,
|
||||
} from 'app/modules/proto/c2se/backend/site_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class SiteService {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
constructor(private __natsService: NatsService) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Accessors
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
listSites(): Promise<ListSitesResponse.Result> {
|
||||
return new Promise<ListSitesResponse.Result>((resolve, reject) => {
|
||||
let req = new ListSitesRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<ListSitesResponse.Result>(
|
||||
SUBJECT_LIST_SITES,
|
||||
req.serializeBinary(),
|
||||
ListSitesResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getSitesList());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
createSite(): Promise<CreateSiteResponse.Result> {
|
||||
return new Promise<CreateSiteResponse.Result>((resolve, reject) => {
|
||||
let req = new CreateSiteRequest();
|
||||
|
||||
this.__natsService
|
||||
.request<CreateSiteResponse.Result>(
|
||||
SUBJECT_CREATE_SITE,
|
||||
req.serializeBinary(),
|
||||
CreateSiteResponse.deserializeBinary
|
||||
)
|
||||
.then((result) => {
|
||||
console.log('success', result, result.getSite());
|
||||
return resolve(result);
|
||||
})
|
||||
.catch((e: Error) => {
|
||||
console.log('failed', e);
|
||||
return reject(e);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
|
||||
import { SERVICES } from './services';
|
||||
|
||||
@NgModule({})
|
||||
export class SiteRootModule {}
|
||||
|
||||
@NgModule({})
|
||||
export class SiteModule {
|
||||
public static forRoot(): ModuleWithProviders<SiteRootModule> {
|
||||
return {
|
||||
ngModule: SiteRootModule,
|
||||
providers: [...SERVICES],
|
||||
};
|
||||
}
|
||||
}
|
182
src/app/modules/proto/c2se/api/game_pb.d.ts
vendored
Normal file
182
src/app/modules/proto/c2se/api/game_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,182 @@
|
|||
// package: bet.beteran.c2se.api.game
|
||||
// file: c2se/api/game.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_core_network_pb from '../../models/core/network_pb';
|
||||
import * as models_api_game_pb from '../../models/api/game_pb';
|
||||
|
||||
export class ListGamesRequest 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(): ListGamesRequest.Search | undefined;
|
||||
setSearch(value?: ListGamesRequest.Search): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListGamesRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: ListGamesRequest
|
||||
): ListGamesRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: ListGamesRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListGamesRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: ListGamesRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): ListGamesRequest;
|
||||
}
|
||||
|
||||
export namespace ListGamesRequest {
|
||||
export type AsObject = {
|
||||
pagination?: protobuf_pagination_pb.Pagination.AsObject;
|
||||
sortsList: Array<protobuf_pagination_pb.Sort.AsObject>;
|
||||
search?: ListGamesRequest.Search.AsObject;
|
||||
};
|
||||
|
||||
export class Search extends jspb.Message {
|
||||
hasVendorId(): boolean;
|
||||
clearVendorId(): void;
|
||||
getVendorId(): number;
|
||||
setVendorId(value: number): void;
|
||||
|
||||
hasKeyLike(): boolean;
|
||||
clearKeyLike(): void;
|
||||
getKeyLike(): string;
|
||||
setKeyLike(value: string): void;
|
||||
|
||||
hasPlatformLike(): boolean;
|
||||
clearPlatformLike(): void;
|
||||
getPlatformLike(): string;
|
||||
setPlatformLike(value: string): void;
|
||||
|
||||
hasCategoryLike(): boolean;
|
||||
clearCategoryLike(): void;
|
||||
getCategoryLike(): string;
|
||||
setCategoryLike(value: string): void;
|
||||
|
||||
hasGameTypeLike(): boolean;
|
||||
clearGameTypeLike(): void;
|
||||
getGameTypeLike(): string;
|
||||
setGameTypeLike(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 = {
|
||||
vendorId: number;
|
||||
keyLike: string;
|
||||
platformLike: string;
|
||||
categoryLike: string;
|
||||
gameTypeLike: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class ListGamesResponse 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(): ListGamesResponse.Result | undefined;
|
||||
setResult(value?: ListGamesResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListGamesResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: ListGamesResponse
|
||||
): ListGamesResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: ListGamesResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListGamesResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: ListGamesResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): ListGamesResponse;
|
||||
}
|
||||
|
||||
export namespace ListGamesResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_pb.Error.AsObject;
|
||||
result?: ListGamesResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
clearGamesList(): void;
|
||||
getGamesList(): Array<models_api_game_pb.Game>;
|
||||
setGamesList(value: Array<models_api_game_pb.Game>): void;
|
||||
addGames(
|
||||
value?: models_api_game_pb.Game,
|
||||
index?: number
|
||||
): models_api_game_pb.Game;
|
||||
|
||||
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 = {
|
||||
gamesList: Array<models_api_game_pb.Game.AsObject>;
|
||||
};
|
||||
}
|
||||
}
|
1220
src/app/modules/proto/c2se/api/game_pb.js
Normal file
1220
src/app/modules/proto/c2se/api/game_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
6
src/app/modules/proto/c2se/backend/api/game_pb.d.ts
vendored
Normal file
6
src/app/modules/proto/c2se/backend/api/game_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
// package: bet.beteran.c2se.backend.api.game
|
||||
// file: c2se/backend/api/game.proto
|
||||
|
||||
import * as jspb from 'google-protobuf';
|
||||
|
||||
export const SUBJECT_LIST_GAMES: string;
|
27
src/app/modules/proto/c2se/backend/api/game_pb.js
Normal file
27
src/app/modules/proto/c2se/backend/api/game_pb.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
// source: c2se/backend/api/game.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.api.game", null, global);
|
||||
|
||||
proto.bet.beteran.c2se.backend.api.game = {};
|
||||
|
||||
proto.bet.beteran.c2se.backend.api.game.SUBJECT_LIST_GAMES =
|
||||
"bet.beteran.c2se.backend.api.game.ListGames";
|
||||
|
||||
goog.object.extend(exports, proto.bet.beteran.c2se.backend.api.game);
|
10
src/app/modules/proto/c2se/backend/member_referrer_pb.d.ts
vendored
Normal file
10
src/app/modules/proto/c2se/backend/member_referrer_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
// package: bet.beteran.c2se.backend.member_level
|
||||
// file: c2se/backend/member_level.proto
|
||||
|
||||
import * as jspb from 'google-protobuf';
|
||||
|
||||
export const SUBJECT_CREATE_MEMBER_REFERRER: string;
|
||||
export const SUBJECT_LIST_MEMBER_REFERRERS: string;
|
||||
export const SUBJECT_GET_MEMBER_REFERRER: string;
|
||||
export const SUBJECT_UPDATE_MEMBER_REFERRER: string;
|
||||
export const SUBJECT_DELETE_MEMBER_REFERRER: string;
|
39
src/app/modules/proto/c2se/backend/member_referrer_pb.js
Normal file
39
src/app/modules/proto/c2se/backend/member_referrer_pb.js
Normal file
|
@ -0,0 +1,39 @@
|
|||
// source: c2se/backend/member_referrer.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_referrer",
|
||||
null,
|
||||
global
|
||||
);
|
||||
|
||||
proto.bet.beteran.c2se.backend.member_referrer = {};
|
||||
|
||||
proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_CREATE_MEMBER_REFERRER =
|
||||
"bet.beteran.c2se.backend.member_referrer.CreateMemberReferrer";
|
||||
proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_LIST_MEMBER_REFERRERS =
|
||||
"bet.beteran.c2se.backend.member_referrer.ListMemberReferrers";
|
||||
proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_GET_MEMBER_REFERRER =
|
||||
"bet.beteran.c2se.backend.member_referrer.GetMemberReferrer";
|
||||
proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_UPDATE_MEMBER_REFERRER =
|
||||
"bet.beteran.c2se.backend.member_referrer.UpdateMemberReferrer";
|
||||
proto.bet.beteran.c2se.backend.member_referrer.SUBJECT_DELETE_MEMBER_REFERRER =
|
||||
"bet.beteran.c2se.backend.member_referrer.DeleteMemberReferrer";
|
||||
|
||||
goog.object.extend(exports, proto.bet.beteran.c2se.backend.member_referrer);
|
6
src/app/modules/proto/c2se/frontend/api/game_pb.d.ts
vendored
Normal file
6
src/app/modules/proto/c2se/frontend/api/game_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
// package: bet.beteran.c2se.frontend.api.game
|
||||
// file: c2se/frontend/api/game.proto
|
||||
|
||||
import * as jspb from 'google-protobuf';
|
||||
|
||||
export const SUBJECT_LIST_GAMES: string;
|
27
src/app/modules/proto/c2se/frontend/api/game_pb.js
Normal file
27
src/app/modules/proto/c2se/frontend/api/game_pb.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
// source: c2se/frontend/api/game.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.frontend.api.game", null, global);
|
||||
|
||||
proto.bet.beteran.c2se.frontend.api.game = {};
|
||||
|
||||
proto.bet.beteran.c2se.frontend.api.game.SUBJECT_LIST_GAMES =
|
||||
"bet.beteran.c2se.frontend.api.game.ListGames";
|
||||
|
||||
goog.object.extend(exports, proto.bet.beteran.c2se.frontend.api.game);
|
6
src/app/modules/proto/c2se/frontend/api/vendor_pb.d.ts
vendored
Normal file
6
src/app/modules/proto/c2se/frontend/api/vendor_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
// package: bet.beteran.c2se.frontend.api.vendor
|
||||
// file: c2se/frontend/api/vendor.proto
|
||||
|
||||
import * as jspb from 'google-protobuf';
|
||||
|
||||
export const SUBJECT_LIST_VENDORS: string;
|
27
src/app/modules/proto/c2se/frontend/api/vendor_pb.js
Normal file
27
src/app/modules/proto/c2se/frontend/api/vendor_pb.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
// source: c2se/frontend/api/vendor.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.frontend.api.vendor", null, global);
|
||||
|
||||
proto.bet.beteran.c2se.frontend.api.vendor = {};
|
||||
|
||||
proto.bet.beteran.c2se.frontend.api.vendor.SUBJECT_LIST_VENDORS =
|
||||
"bet.beteran.c2se.frontend.api.vendor.ListVendors";
|
||||
|
||||
goog.object.extend(exports, proto.bet.beteran.c2se.frontend.api.vendor);
|
10
src/app/modules/proto/c2se/member_pb.d.ts
vendored
10
src/app/modules/proto/c2se/member_pb.d.ts
vendored
|
@ -250,10 +250,10 @@ export namespace ListMembersRequest {
|
|||
getMemberLevelId(): string;
|
||||
setMemberLevelId(value: string): void;
|
||||
|
||||
hasReferrerMemberId(): boolean;
|
||||
clearReferrerMemberId(): void;
|
||||
getReferrerMemberId(): string;
|
||||
setReferrerMemberId(value: string): void;
|
||||
hasParentMemberId(): boolean;
|
||||
clearParentMemberId(): void;
|
||||
getParentMemberId(): string;
|
||||
setParentMemberId(value: string): void;
|
||||
|
||||
hasUsernameLike(): boolean;
|
||||
clearUsernameLike(): void;
|
||||
|
@ -310,7 +310,7 @@ export namespace ListMembersRequest {
|
|||
siteId: string;
|
||||
memberClassId: string;
|
||||
memberLevelId: string;
|
||||
referrerMemberId: string;
|
||||
parentMemberId: string;
|
||||
usernameLike: string;
|
||||
nicknameLike: string;
|
||||
mobilePhoneNumberLike: string;
|
||||
|
|
|
@ -2031,7 +2031,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
memberClassId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
memberLevelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||
referrerMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
parentMemberId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
usernameLike: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
nicknameLike: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
||||
mobilePhoneNumberLike: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||
|
@ -2091,7 +2091,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.deserializeBinaryFromRea
|
|||
break;
|
||||
case 4:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setReferrerMemberId(value);
|
||||
msg.setParentMemberId(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
|
@ -2310,10 +2310,10 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasMemberLevel
|
|||
};
|
||||
|
||||
/**
|
||||
* optional string referrer_member_id = 4;
|
||||
* optional string parent_member_id = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getReferrerMemberId =
|
||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getParentMemberId =
|
||||
function () {
|
||||
return /** @type {string} */ (
|
||||
jspb.Message.getFieldWithDefault(this, 4, "")
|
||||
|
@ -2324,7 +2324,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.getReferrerMem
|
|||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this
|
||||
*/
|
||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setReferrerMemberId =
|
||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setParentMemberId =
|
||||
function (value) {
|
||||
return jspb.Message.setField(this, 4, value);
|
||||
};
|
||||
|
@ -2333,7 +2333,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.setReferrerMem
|
|||
* Clears the field making it undefined.
|
||||
* @return {!proto.bet.beteran.c2se.member.ListMembersRequest.Search} returns this
|
||||
*/
|
||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearReferrerMemberId =
|
||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearParentMemberId =
|
||||
function () {
|
||||
return jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
@ -2342,7 +2342,7 @@ proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.clearReferrerM
|
|||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasReferrerMemberId =
|
||||
proto.bet.beteran.c2se.member.ListMembersRequest.Search.prototype.hasParentMemberId =
|
||||
function () {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
|
586
src/app/modules/proto/c2se/member_referrer_pb.d.ts
vendored
Normal file
586
src/app/modules/proto/c2se/member_referrer_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,586 @@
|
|||
// package: bet.beteran.c2se.member_referrer
|
||||
// file: c2se/member_referrer.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_referrer_pb from '../models/member_referrer_pb';
|
||||
|
||||
export class CreateMemberReferrerRequest extends jspb.Message {
|
||||
getMemberId(): string;
|
||||
setMemberId(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateMemberReferrerRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: CreateMemberReferrerRequest
|
||||
): CreateMemberReferrerRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: CreateMemberReferrerRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateMemberReferrerRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: CreateMemberReferrerRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): CreateMemberReferrerRequest;
|
||||
}
|
||||
|
||||
export namespace CreateMemberReferrerRequest {
|
||||
export type AsObject = {
|
||||
memberId: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class CreateMemberReferrerResponse 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(): CreateMemberReferrerResponse.Result | undefined;
|
||||
setResult(value?: CreateMemberReferrerResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateMemberReferrerResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: CreateMemberReferrerResponse
|
||||
): CreateMemberReferrerResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: CreateMemberReferrerResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateMemberReferrerResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: CreateMemberReferrerResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): CreateMemberReferrerResponse;
|
||||
}
|
||||
|
||||
export namespace CreateMemberReferrerResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_pb.Error.AsObject;
|
||||
result?: CreateMemberReferrerResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
hasMemberReferrer(): boolean;
|
||||
clearMemberReferrer(): void;
|
||||
getMemberReferrer():
|
||||
| models_member_referrer_pb.MemberReferrerModel
|
||||
| undefined;
|
||||
setMemberReferrer(
|
||||
value?: models_member_referrer_pb.MemberReferrerModel
|
||||
): 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 = {
|
||||
memberReferrer?: models_member_referrer_pb.MemberReferrerModel.AsObject;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class ListMemberReferrersRequest 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(): ListMemberReferrersRequest.Search | undefined;
|
||||
setSearch(value?: ListMemberReferrersRequest.Search): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListMemberReferrersRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: ListMemberReferrersRequest
|
||||
): ListMemberReferrersRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: ListMemberReferrersRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListMemberReferrersRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: ListMemberReferrersRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): ListMemberReferrersRequest;
|
||||
}
|
||||
|
||||
export namespace ListMemberReferrersRequest {
|
||||
export type AsObject = {
|
||||
pagination?: protobuf_pagination_pb.Pagination.AsObject;
|
||||
sortsList: Array<protobuf_pagination_pb.Sort.AsObject>;
|
||||
search?: ListMemberReferrersRequest.Search.AsObject;
|
||||
};
|
||||
|
||||
export class Search extends jspb.Message {
|
||||
hasMemberId(): boolean;
|
||||
clearMemberId(): void;
|
||||
getMemberId(): string;
|
||||
setMemberId(value: string): void;
|
||||
|
||||
hasCanUse(): boolean;
|
||||
clearCanUse(): void;
|
||||
getCanUse(): boolean;
|
||||
setCanUse(value: boolean): void;
|
||||
|
||||
hasMemoLike(): boolean;
|
||||
clearMemoLike(): void;
|
||||
getMemoLike(): string;
|
||||
setMemoLike(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;
|
||||
canUse: boolean;
|
||||
memoLike: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class ListMemberReferrersResponse 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(): ListMemberReferrersResponse.Result | undefined;
|
||||
setResult(value?: ListMemberReferrersResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListMemberReferrersResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: ListMemberReferrersResponse
|
||||
): ListMemberReferrersResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: ListMemberReferrersResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListMemberReferrersResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: ListMemberReferrersResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): ListMemberReferrersResponse;
|
||||
}
|
||||
|
||||
export namespace ListMemberReferrersResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_pb.Error.AsObject;
|
||||
result?: ListMemberReferrersResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
clearMemberReferrersList(): void;
|
||||
getMemberReferrersList(): Array<models_member_referrer_pb.MemberReferrerModel>;
|
||||
setMemberReferrersList(
|
||||
value: Array<models_member_referrer_pb.MemberReferrerModel>
|
||||
): void;
|
||||
addMemberReferrers(
|
||||
value?: models_member_referrer_pb.MemberReferrerModel,
|
||||
index?: number
|
||||
): models_member_referrer_pb.MemberReferrerModel;
|
||||
|
||||
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 = {
|
||||
memberReferrersList: Array<models_member_referrer_pb.MemberReferrerModel.AsObject>;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class GetMemberReferrerRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetMemberReferrerRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: GetMemberReferrerRequest
|
||||
): GetMemberReferrerRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: GetMemberReferrerRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetMemberReferrerRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: GetMemberReferrerRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): GetMemberReferrerRequest;
|
||||
}
|
||||
|
||||
export namespace GetMemberReferrerRequest {
|
||||
export type AsObject = {
|
||||
id: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class GetMemberReferrerResponse 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(): GetMemberReferrerResponse.Result | undefined;
|
||||
setResult(value?: GetMemberReferrerResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetMemberReferrerResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: GetMemberReferrerResponse
|
||||
): GetMemberReferrerResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: GetMemberReferrerResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetMemberReferrerResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: GetMemberReferrerResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): GetMemberReferrerResponse;
|
||||
}
|
||||
|
||||
export namespace GetMemberReferrerResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_pb.Error.AsObject;
|
||||
result?: GetMemberReferrerResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
hasMemberReferrer(): boolean;
|
||||
clearMemberReferrer(): void;
|
||||
getMemberReferrer():
|
||||
| models_member_referrer_pb.MemberReferrerModel
|
||||
| undefined;
|
||||
setMemberReferrer(
|
||||
value?: models_member_referrer_pb.MemberReferrerModel
|
||||
): 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 = {
|
||||
memberReferrer?: models_member_referrer_pb.MemberReferrerModel.AsObject;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateMemberReferrerRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
getCanUse(): boolean;
|
||||
setCanUse(value: boolean): void;
|
||||
|
||||
hasMemo(): boolean;
|
||||
clearMemo(): void;
|
||||
getMemo(): string;
|
||||
setMemo(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateMemberReferrerRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: UpdateMemberReferrerRequest
|
||||
): UpdateMemberReferrerRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: UpdateMemberReferrerRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateMemberReferrerRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: UpdateMemberReferrerRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): UpdateMemberReferrerRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateMemberReferrerRequest {
|
||||
export type AsObject = {
|
||||
id: string;
|
||||
canUse: boolean;
|
||||
memo: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class UpdateMemberReferrerResponse 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(): UpdateMemberReferrerResponse.Result | undefined;
|
||||
setResult(value?: UpdateMemberReferrerResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateMemberReferrerResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: UpdateMemberReferrerResponse
|
||||
): UpdateMemberReferrerResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: UpdateMemberReferrerResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateMemberReferrerResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: UpdateMemberReferrerResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): UpdateMemberReferrerResponse;
|
||||
}
|
||||
|
||||
export namespace UpdateMemberReferrerResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_pb.Error.AsObject;
|
||||
result?: UpdateMemberReferrerResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
hasMemberReferrer(): boolean;
|
||||
clearMemberReferrer(): void;
|
||||
getMemberReferrer():
|
||||
| models_member_referrer_pb.MemberReferrerModel
|
||||
| undefined;
|
||||
setMemberReferrer(
|
||||
value?: models_member_referrer_pb.MemberReferrerModel
|
||||
): 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 = {
|
||||
memberReferrer?: models_member_referrer_pb.MemberReferrerModel.AsObject;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteMemberReferrerRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteMemberReferrerRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: DeleteMemberReferrerRequest
|
||||
): DeleteMemberReferrerRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: DeleteMemberReferrerRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteMemberReferrerRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: DeleteMemberReferrerRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): DeleteMemberReferrerRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteMemberReferrerRequest {
|
||||
export type AsObject = {
|
||||
id: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class DeleteMemberReferrerResponse 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(): DeleteMemberReferrerResponse.Result | undefined;
|
||||
setResult(value?: DeleteMemberReferrerResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteMemberReferrerResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: DeleteMemberReferrerResponse
|
||||
): DeleteMemberReferrerResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: DeleteMemberReferrerResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteMemberReferrerResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: DeleteMemberReferrerResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): DeleteMemberReferrerResponse;
|
||||
}
|
||||
|
||||
export namespace DeleteMemberReferrerResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_pb.Error.AsObject;
|
||||
result?: DeleteMemberReferrerResponse.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 = {};
|
||||
}
|
||||
}
|
3686
src/app/modules/proto/c2se/member_referrer_pb.js
Normal file
3686
src/app/modules/proto/c2se/member_referrer_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
70
src/app/modules/proto/models/api/game_pb.d.ts
vendored
Normal file
70
src/app/modules/proto/models/api/game_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
// package: bet.beteran.api.game
|
||||
// file: models/api/game.proto
|
||||
|
||||
import * as jspb from 'google-protobuf';
|
||||
|
||||
export class Game extends jspb.Message {
|
||||
getId(): number;
|
||||
setId(value: number): void;
|
||||
|
||||
getVendorId(): number;
|
||||
setVendorId(value: number): void;
|
||||
|
||||
getKey(): string;
|
||||
setKey(value: string): void;
|
||||
|
||||
getNames(): string;
|
||||
setNames(value: string): void;
|
||||
|
||||
getPlatform(): string;
|
||||
setPlatform(value: string): void;
|
||||
|
||||
getCategory(): string;
|
||||
setCategory(value: string): void;
|
||||
|
||||
getGameType(): string;
|
||||
setGameType(value: string): void;
|
||||
|
||||
hasImage(): boolean;
|
||||
clearImage(): void;
|
||||
getImage(): string;
|
||||
setImage(value: string): void;
|
||||
|
||||
getCreatedAt(): number;
|
||||
setCreatedAt(value: number): void;
|
||||
|
||||
getUpdatedAt(): number;
|
||||
setUpdatedAt(value: number): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Game.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Game): Game.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: Game,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Game;
|
||||
static deserializeBinaryFromReader(
|
||||
message: Game,
|
||||
reader: jspb.BinaryReader
|
||||
): Game;
|
||||
}
|
||||
|
||||
export namespace Game {
|
||||
export type AsObject = {
|
||||
id: number;
|
||||
vendorId: number;
|
||||
key: string;
|
||||
names: string;
|
||||
platform: string;
|
||||
category: string;
|
||||
gameType: string;
|
||||
image: string;
|
||||
createdAt: number;
|
||||
updatedAt: number;
|
||||
};
|
||||
}
|
413
src/app/modules/proto/models/api/game_pb.js
Normal file
413
src/app/modules/proto/models/api/game_pb.js
Normal file
|
@ -0,0 +1,413 @@
|
|||
// source: models/api/game.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.api.game.Game", 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.api.game.Game = function (opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.bet.beteran.api.game.Game, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.displayName =
|
||||
"proto.bet.beteran.api.game.Game";
|
||||
}
|
||||
|
||||
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.api.game.Game.prototype.toObject = function (
|
||||
opt_includeInstance
|
||||
) {
|
||||
return proto.bet.beteran.api.game.Game.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.api.game.Game} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.toObject = function (includeInstance, msg) {
|
||||
var f,
|
||||
obj = {
|
||||
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
||||
vendorId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||||
key: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||
names: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
platform: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
category: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
||||
gameType: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||
image: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
||||
createdAt: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
||||
updatedAt: jspb.Message.getFieldWithDefault(msg, 10, 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.api.game.Game}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.deserializeBinary = function (bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.bet.beteran.api.game.Game();
|
||||
return proto.bet.beteran.api.game.Game.deserializeBinaryFromReader(
|
||||
msg,
|
||||
reader
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.bet.beteran.api.game.Game} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.bet.beteran.api.game.Game}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.deserializeBinaryFromReader = function (
|
||||
msg,
|
||||
reader
|
||||
) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {number} */ (reader.readUint64());
|
||||
msg.setId(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {number} */ (reader.readUint64());
|
||||
msg.setVendorId(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setKey(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setNames(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setPlatform(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setCategory(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setGameType(value);
|
||||
break;
|
||||
case 8:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setImage(value);
|
||||
break;
|
||||
case 9:
|
||||
var value = /** @type {number} */ (reader.readUint64());
|
||||
msg.setCreatedAt(value);
|
||||
break;
|
||||
case 10:
|
||||
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.api.game.Game.prototype.serializeBinary = function () {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.bet.beteran.api.game.Game.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.api.game.Game} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.serializeBinaryToWriter = function (
|
||||
message,
|
||||
writer
|
||||
) {
|
||||
var f = undefined;
|
||||
f = message.getId();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(1, f);
|
||||
}
|
||||
f = message.getVendorId();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(2, f);
|
||||
}
|
||||
f = message.getKey();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(3, f);
|
||||
}
|
||||
f = message.getNames();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(4, f);
|
||||
}
|
||||
f = message.getPlatform();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(5, f);
|
||||
}
|
||||
f = message.getCategory();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(6, f);
|
||||
}
|
||||
f = message.getGameType();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(7, f);
|
||||
}
|
||||
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
||||
if (f != null) {
|
||||
writer.writeString(8, f);
|
||||
}
|
||||
f = message.getCreatedAt();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(9, f);
|
||||
}
|
||||
f = message.getUpdatedAt();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(10, f);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 id = 1;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.getId = function () {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.setId = function (value) {
|
||||
return jspb.Message.setProto3IntField(this, 1, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 vendor_id = 2;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.getVendorId = function () {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.setVendorId = function (value) {
|
||||
return jspb.Message.setProto3IntField(this, 2, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string key = 3;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.getKey = function () {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.setKey = function (value) {
|
||||
return jspb.Message.setProto3StringField(this, 3, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string names = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.getNames = function () {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.setNames = function (value) {
|
||||
return jspb.Message.setProto3StringField(this, 4, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string platform = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.getPlatform = function () {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.setPlatform = function (value) {
|
||||
return jspb.Message.setProto3StringField(this, 5, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string category = 6;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.getCategory = function () {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.setCategory = function (value) {
|
||||
return jspb.Message.setProto3StringField(this, 6, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string game_type = 7;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.getGameType = function () {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.setGameType = function (value) {
|
||||
return jspb.Message.setProto3StringField(this, 7, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string image = 8;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.getImage = function () {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.setImage = function (value) {
|
||||
return jspb.Message.setField(this, 8, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.clearImage = function () {
|
||||
return jspb.Message.setField(this, 8, undefined);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.hasImage = function () {
|
||||
return jspb.Message.getField(this, 8) != null;
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 created_at = 9;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.getCreatedAt = function () {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.setCreatedAt = function (value) {
|
||||
return jspb.Message.setProto3IntField(this, 9, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 updated_at = 10;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.getUpdatedAt = function () {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.api.game.Game} returns this
|
||||
*/
|
||||
proto.bet.beteran.api.game.Game.prototype.setUpdatedAt = function (value) {
|
||||
return jspb.Message.setProto3IntField(this, 10, value);
|
||||
};
|
||||
|
||||
goog.object.extend(exports, proto.bet.beteran.api.game);
|
32
src/app/modules/proto/models/member_pb.d.ts
vendored
32
src/app/modules/proto/models/member_pb.d.ts
vendored
|
@ -20,13 +20,13 @@ export class Member extends jspb.Message {
|
|||
getMemberLevelId(): string;
|
||||
setMemberLevelId(value: string): void;
|
||||
|
||||
hasReferrerMemberId(): boolean;
|
||||
clearReferrerMemberId(): void;
|
||||
getReferrerMemberId(): string;
|
||||
setReferrerMemberId(value: string): void;
|
||||
hasParentMemberId(): boolean;
|
||||
clearParentMemberId(): void;
|
||||
getParentMemberId(): string;
|
||||
setParentMemberId(value: string): void;
|
||||
|
||||
getReferredCount(): number;
|
||||
setReferredCount(value: number): void;
|
||||
getChildMemberCount(): number;
|
||||
setChildMemberCount(value: number): void;
|
||||
|
||||
getUsername(): string;
|
||||
setUsername(value: string): void;
|
||||
|
@ -92,8 +92,8 @@ export namespace Member {
|
|||
siteId: string;
|
||||
memberClassId: string;
|
||||
memberLevelId: string;
|
||||
referrerMemberId: string;
|
||||
referredCount: number;
|
||||
parentMemberId: string;
|
||||
childMemberCount: number;
|
||||
username: string;
|
||||
nickname: string;
|
||||
mobilePhoneNumber: string;
|
||||
|
@ -135,13 +135,13 @@ export class MemberModel extends jspb.Message {
|
|||
value?: models_member_bank_account_pb.MemberBankAccountModel
|
||||
): void;
|
||||
|
||||
hasReferrerMember(): boolean;
|
||||
clearReferrerMember(): void;
|
||||
getReferrerMember(): Member | undefined;
|
||||
setReferrerMember(value?: Member): void;
|
||||
hasParentMember(): boolean;
|
||||
clearParentMember(): void;
|
||||
getParentMember(): Member | undefined;
|
||||
setParentMember(value?: Member): void;
|
||||
|
||||
getReferredCount(): number;
|
||||
setReferredCount(value: number): void;
|
||||
getChildMemberCount(): number;
|
||||
setChildMemberCount(value: number): void;
|
||||
|
||||
getUsername(): string;
|
||||
setUsername(value: string): void;
|
||||
|
@ -211,8 +211,8 @@ export namespace MemberModel {
|
|||
memberClass?: models_member_class_pb.MemberClass.AsObject;
|
||||
memberLevel?: models_member_level_pb.MemberLevel.AsObject;
|
||||
bankAccount?: models_member_bank_account_pb.MemberBankAccountModel.AsObject;
|
||||
referrerMember?: Member.AsObject;
|
||||
referredCount: number;
|
||||
parentMember?: Member.AsObject;
|
||||
childMemberCount: number;
|
||||
username: string;
|
||||
nickname: string;
|
||||
mobilePhoneNumber: string;
|
||||
|
|
|
@ -108,8 +108,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
memberClassId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||
memberLevelId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
referrerMemberId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
referredCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||
parentMemberId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
childMemberCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||
username: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||
nickname: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
||||
mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
||||
|
@ -178,11 +178,11 @@ proto.bet.beteran.member.Member.deserializeBinaryFromReader = function (
|
|||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setReferrerMemberId(value);
|
||||
msg.setParentMemberId(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {number} */ (reader.readUint64());
|
||||
msg.setReferredCount(value);
|
||||
msg.setChildMemberCount(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
|
@ -276,7 +276,7 @@ proto.bet.beteran.member.Member.serializeBinaryToWriter = function (
|
|||
if (f != null) {
|
||||
writer.writeString(5, f);
|
||||
}
|
||||
f = message.getReferredCount();
|
||||
f = message.getChildMemberCount();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(6, f);
|
||||
}
|
||||
|
@ -387,10 +387,10 @@ proto.bet.beteran.member.Member.prototype.setMemberLevelId = function (value) {
|
|||
};
|
||||
|
||||
/**
|
||||
* optional string referrer_member_id = 5;
|
||||
* optional string parent_member_id = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.member.Member.prototype.getReferrerMemberId = function () {
|
||||
proto.bet.beteran.member.Member.prototype.getParentMemberId = function () {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
|
@ -398,9 +398,7 @@ proto.bet.beteran.member.Member.prototype.getReferrerMemberId = function () {
|
|||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.member.Member} returns this
|
||||
*/
|
||||
proto.bet.beteran.member.Member.prototype.setReferrerMemberId = function (
|
||||
value
|
||||
) {
|
||||
proto.bet.beteran.member.Member.prototype.setParentMemberId = function (value) {
|
||||
return jspb.Message.setField(this, 5, value);
|
||||
};
|
||||
|
||||
|
@ -408,7 +406,7 @@ proto.bet.beteran.member.Member.prototype.setReferrerMemberId = function (
|
|||
* Clears the field making it undefined.
|
||||
* @return {!proto.bet.beteran.member.Member} returns this
|
||||
*/
|
||||
proto.bet.beteran.member.Member.prototype.clearReferrerMemberId = function () {
|
||||
proto.bet.beteran.member.Member.prototype.clearParentMemberId = function () {
|
||||
return jspb.Message.setField(this, 5, undefined);
|
||||
};
|
||||
|
||||
|
@ -416,15 +414,15 @@ proto.bet.beteran.member.Member.prototype.clearReferrerMemberId = function () {
|
|||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.member.Member.prototype.hasReferrerMemberId = function () {
|
||||
proto.bet.beteran.member.Member.prototype.hasParentMemberId = function () {
|
||||
return jspb.Message.getField(this, 5) != null;
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 referred_count = 6;
|
||||
* optional uint64 child_member_count = 6;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.member.Member.prototype.getReferredCount = function () {
|
||||
proto.bet.beteran.member.Member.prototype.getChildMemberCount = function () {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||
};
|
||||
|
||||
|
@ -432,7 +430,9 @@ proto.bet.beteran.member.Member.prototype.getReferredCount = function () {
|
|||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.member.Member} returns this
|
||||
*/
|
||||
proto.bet.beteran.member.Member.prototype.setReferredCount = function (value) {
|
||||
proto.bet.beteran.member.Member.prototype.setChildMemberCount = function (
|
||||
value
|
||||
) {
|
||||
return jspb.Message.setProto3IntField(this, 6, value);
|
||||
};
|
||||
|
||||
|
@ -733,10 +733,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|||
includeInstance,
|
||||
f
|
||||
),
|
||||
referrerMember:
|
||||
(f = msg.getReferrerMember()) &&
|
||||
parentMember:
|
||||
(f = msg.getParentMember()) &&
|
||||
proto.bet.beteran.member.Member.toObject(includeInstance, f),
|
||||
referredCount: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
||||
childMemberCount: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
||||
username: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
||||
nickname: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
||||
mobilePhoneNumber: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
||||
|
@ -830,11 +830,11 @@ proto.bet.beteran.member.MemberModel.deserializeBinaryFromReader = function (
|
|||
value,
|
||||
proto.bet.beteran.member.Member.deserializeBinaryFromReader
|
||||
);
|
||||
msg.setReferrerMember(value);
|
||||
msg.setParentMember(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = /** @type {number} */ (reader.readUint64());
|
||||
msg.setReferredCount(value);
|
||||
msg.setChildMemberCount(value);
|
||||
break;
|
||||
case 8:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
|
@ -941,7 +941,7 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function (
|
|||
.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getReferrerMember();
|
||||
f = message.getParentMember();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
6,
|
||||
|
@ -949,7 +949,7 @@ proto.bet.beteran.member.MemberModel.serializeBinaryToWriter = function (
|
|||
proto.bet.beteran.member.Member.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getReferredCount();
|
||||
f = message.getChildMemberCount();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(7, f);
|
||||
}
|
||||
|
@ -1158,10 +1158,10 @@ proto.bet.beteran.member.MemberModel.prototype.hasBankAccount = function () {
|
|||
};
|
||||
|
||||
/**
|
||||
* optional Member referrer_member = 6;
|
||||
* optional Member parent_member = 6;
|
||||
* @return {?proto.bet.beteran.member.Member}
|
||||
*/
|
||||
proto.bet.beteran.member.MemberModel.prototype.getReferrerMember = function () {
|
||||
proto.bet.beteran.member.MemberModel.prototype.getParentMember = function () {
|
||||
return /** @type{?proto.bet.beteran.member.Member} */ (
|
||||
jspb.Message.getWrapperField(this, proto.bet.beteran.member.Member, 6)
|
||||
);
|
||||
|
@ -1171,7 +1171,7 @@ proto.bet.beteran.member.MemberModel.prototype.getReferrerMember = function () {
|
|||
* @param {?proto.bet.beteran.member.Member|undefined} value
|
||||
* @return {!proto.bet.beteran.member.MemberModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member.MemberModel.prototype.setReferrerMember = function (
|
||||
proto.bet.beteran.member.MemberModel.prototype.setParentMember = function (
|
||||
value
|
||||
) {
|
||||
return jspb.Message.setWrapperField(this, 6, value);
|
||||
|
@ -1181,32 +1181,32 @@ proto.bet.beteran.member.MemberModel.prototype.setReferrerMember = function (
|
|||
* Clears the message field making it undefined.
|
||||
* @return {!proto.bet.beteran.member.MemberModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member.MemberModel.prototype.clearReferrerMember =
|
||||
function () {
|
||||
return this.setReferrerMember(undefined);
|
||||
};
|
||||
proto.bet.beteran.member.MemberModel.prototype.clearParentMember = function () {
|
||||
return this.setParentMember(undefined);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.member.MemberModel.prototype.hasReferrerMember = function () {
|
||||
proto.bet.beteran.member.MemberModel.prototype.hasParentMember = function () {
|
||||
return jspb.Message.getField(this, 6) != null;
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 referred_count = 7;
|
||||
* optional uint64 child_member_count = 7;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.member.MemberModel.prototype.getReferredCount = function () {
|
||||
proto.bet.beteran.member.MemberModel.prototype.getChildMemberCount =
|
||||
function () {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.member.MemberModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member.MemberModel.prototype.setReferredCount = function (
|
||||
proto.bet.beteran.member.MemberModel.prototype.setChildMemberCount = function (
|
||||
value
|
||||
) {
|
||||
return jspb.Message.setProto3IntField(this, 7, value);
|
||||
|
|
113
src/app/modules/proto/models/member_referrer_pb.d.ts
vendored
Normal file
113
src/app/modules/proto/models/member_referrer_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,113 @@
|
|||
// package: bet.beteran.member_referrer
|
||||
// file: models/member_referrer.proto
|
||||
|
||||
import * as jspb from 'google-protobuf';
|
||||
import * as models_member_pb from '../models/member_pb';
|
||||
|
||||
export class MemberReferrer extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
getMemberId(): string;
|
||||
setMemberId(value: string): void;
|
||||
|
||||
getCanUse(): boolean;
|
||||
setCanUse(value: boolean): void;
|
||||
|
||||
hasMemo(): boolean;
|
||||
clearMemo(): void;
|
||||
getMemo(): string;
|
||||
setMemo(value: string): void;
|
||||
|
||||
getCreatedAt(): number;
|
||||
setCreatedAt(value: number): void;
|
||||
|
||||
getUpdatedAt(): number;
|
||||
setUpdatedAt(value: number): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): MemberReferrer.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: MemberReferrer
|
||||
): MemberReferrer.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: MemberReferrer,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): MemberReferrer;
|
||||
static deserializeBinaryFromReader(
|
||||
message: MemberReferrer,
|
||||
reader: jspb.BinaryReader
|
||||
): MemberReferrer;
|
||||
}
|
||||
|
||||
export namespace MemberReferrer {
|
||||
export type AsObject = {
|
||||
id: string;
|
||||
memberId: string;
|
||||
canUse: boolean;
|
||||
memo: string;
|
||||
createdAt: number;
|
||||
updatedAt: number;
|
||||
};
|
||||
}
|
||||
|
||||
export class MemberReferrerModel extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
hasMember(): boolean;
|
||||
clearMember(): void;
|
||||
getMember(): models_member_pb.Member | undefined;
|
||||
setMember(value?: models_member_pb.Member): void;
|
||||
|
||||
getCanUse(): boolean;
|
||||
setCanUse(value: boolean): void;
|
||||
|
||||
hasMemo(): boolean;
|
||||
clearMemo(): void;
|
||||
getMemo(): string;
|
||||
setMemo(value: string): void;
|
||||
|
||||
getCreatedAt(): number;
|
||||
setCreatedAt(value: number): void;
|
||||
|
||||
getUpdatedAt(): number;
|
||||
setUpdatedAt(value: number): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): MemberReferrerModel.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: MemberReferrerModel
|
||||
): MemberReferrerModel.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: MemberReferrerModel,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): MemberReferrerModel;
|
||||
static deserializeBinaryFromReader(
|
||||
message: MemberReferrerModel,
|
||||
reader: jspb.BinaryReader
|
||||
): MemberReferrerModel;
|
||||
}
|
||||
|
||||
export namespace MemberReferrerModel {
|
||||
export type AsObject = {
|
||||
id: string;
|
||||
member?: models_member_pb.Member.AsObject;
|
||||
canUse: boolean;
|
||||
memo: string;
|
||||
createdAt: number;
|
||||
updatedAt: number;
|
||||
};
|
||||
}
|
702
src/app/modules/proto/models/member_referrer_pb.js
Normal file
702
src/app/modules/proto/models/member_referrer_pb.js
Normal file
|
@ -0,0 +1,702 @@
|
|||
// source: models/member_referrer.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);
|
||||
|
||||
var models_member_pb = require("../models/member_pb.js");
|
||||
goog.object.extend(proto, models_member_pb);
|
||||
goog.exportSymbol(
|
||||
"proto.bet.beteran.member_referrer.MemberReferrer",
|
||||
null,
|
||||
global
|
||||
);
|
||||
goog.exportSymbol(
|
||||
"proto.bet.beteran.member_referrer.MemberReferrerModel",
|
||||
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_referrer.MemberReferrer = function (opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.bet.beteran.member_referrer.MemberReferrer, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.displayName =
|
||||
"proto.bet.beteran.member_referrer.MemberReferrer";
|
||||
}
|
||||
/**
|
||||
* 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_referrer.MemberReferrerModel = function (opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel,
|
||||
jspb.Message
|
||||
);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.displayName =
|
||||
"proto.bet.beteran.member_referrer.MemberReferrerModel";
|
||||
}
|
||||
|
||||
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_referrer.MemberReferrer.prototype.toObject =
|
||||
function (opt_includeInstance) {
|
||||
return proto.bet.beteran.member_referrer.MemberReferrer.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_referrer.MemberReferrer} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.toObject = function (
|
||||
includeInstance,
|
||||
msg
|
||||
) {
|
||||
var f,
|
||||
obj = {
|
||||
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
memberId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
||||
memo: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
||||
updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 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_referrer.MemberReferrer}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.deserializeBinary = function (
|
||||
bytes
|
||||
) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.bet.beteran.member_referrer.MemberReferrer();
|
||||
return proto.bet.beteran.member_referrer.MemberReferrer.deserializeBinaryFromReader(
|
||||
msg,
|
||||
reader
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.bet.beteran.member_referrer.MemberReferrer} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrer}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.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 {boolean} */ (reader.readBool());
|
||||
msg.setCanUse(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setMemo(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {number} */ (reader.readUint64());
|
||||
msg.setCreatedAt(value);
|
||||
break;
|
||||
case 6:
|
||||
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_referrer.MemberReferrer.prototype.serializeBinary =
|
||||
function () {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.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_referrer.MemberReferrer} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.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.getCanUse();
|
||||
if (f) {
|
||||
writer.writeBool(3, f);
|
||||
}
|
||||
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
||||
if (f != null) {
|
||||
writer.writeString(4, f);
|
||||
}
|
||||
f = message.getCreatedAt();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(5, f);
|
||||
}
|
||||
f = message.getUpdatedAt();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(6, f);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string id = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getId = function () {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setId = function (
|
||||
value
|
||||
) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string member_id = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getMemberId =
|
||||
function () {
|
||||
return /** @type {string} */ (
|
||||
jspb.Message.getFieldWithDefault(this, 2, "")
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setMemberId =
|
||||
function (value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional bool can_use = 3;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getCanUse =
|
||||
function () {
|
||||
return /** @type {boolean} */ (
|
||||
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setCanUse =
|
||||
function (value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 3, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string memo = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getMemo =
|
||||
function () {
|
||||
return /** @type {string} */ (
|
||||
jspb.Message.getFieldWithDefault(this, 4, "")
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setMemo = function (
|
||||
value
|
||||
) {
|
||||
return jspb.Message.setField(this, 4, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.clearMemo =
|
||||
function () {
|
||||
return jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.hasMemo =
|
||||
function () {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 created_at = 5;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getCreatedAt =
|
||||
function () {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setCreatedAt =
|
||||
function (value) {
|
||||
return jspb.Message.setProto3IntField(this, 5, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 updated_at = 6;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.getUpdatedAt =
|
||||
function () {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrer} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrer.prototype.setUpdatedAt =
|
||||
function (value) {
|
||||
return jspb.Message.setProto3IntField(this, 6, value);
|
||||
};
|
||||
|
||||
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_referrer.MemberReferrerModel.prototype.toObject =
|
||||
function (opt_includeInstance) {
|
||||
return proto.bet.beteran.member_referrer.MemberReferrerModel.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_referrer.MemberReferrerModel} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.toObject = function (
|
||||
includeInstance,
|
||||
msg
|
||||
) {
|
||||
var f,
|
||||
obj = {
|
||||
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
member:
|
||||
(f = msg.getMember()) &&
|
||||
models_member_pb.Member.toObject(includeInstance, f),
|
||||
canUse: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
||||
memo: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
||||
updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 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_referrer.MemberReferrerModel}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.deserializeBinary =
|
||||
function (bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.bet.beteran.member_referrer.MemberReferrerModel();
|
||||
return proto.bet.beteran.member_referrer.MemberReferrerModel.deserializeBinaryFromReader(
|
||||
msg,
|
||||
reader
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.bet.beteran.member_referrer.MemberReferrerModel} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.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 = new models_member_pb.Member();
|
||||
reader.readMessage(
|
||||
value,
|
||||
models_member_pb.Member.deserializeBinaryFromReader
|
||||
);
|
||||
msg.setMember(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setCanUse(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setMemo(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {number} */ (reader.readUint64());
|
||||
msg.setCreatedAt(value);
|
||||
break;
|
||||
case 6:
|
||||
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_referrer.MemberReferrerModel.prototype.serializeBinary =
|
||||
function () {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.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_referrer.MemberReferrerModel} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.serializeBinaryToWriter =
|
||||
function (message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getId();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(1, f);
|
||||
}
|
||||
f = message.getMember();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
2,
|
||||
f,
|
||||
models_member_pb.Member.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getCanUse();
|
||||
if (f) {
|
||||
writer.writeBool(3, f);
|
||||
}
|
||||
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
||||
if (f != null) {
|
||||
writer.writeString(4, f);
|
||||
}
|
||||
f = message.getCreatedAt();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(5, f);
|
||||
}
|
||||
f = message.getUpdatedAt();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(6, f);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string id = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getId =
|
||||
function () {
|
||||
return /** @type {string} */ (
|
||||
jspb.Message.getFieldWithDefault(this, 1, "")
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setId =
|
||||
function (value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional bet.beteran.member.Member member = 2;
|
||||
* @return {?proto.bet.beteran.member.Member}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getMember =
|
||||
function () {
|
||||
return /** @type{?proto.bet.beteran.member.Member} */ (
|
||||
jspb.Message.getWrapperField(this, models_member_pb.Member, 2)
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {?proto.bet.beteran.member.Member|undefined} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setMember =
|
||||
function (value) {
|
||||
return jspb.Message.setWrapperField(this, 2, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.clearMember =
|
||||
function () {
|
||||
return this.setMember(undefined);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.hasMember =
|
||||
function () {
|
||||
return jspb.Message.getField(this, 2) != null;
|
||||
};
|
||||
|
||||
/**
|
||||
* optional bool can_use = 3;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getCanUse =
|
||||
function () {
|
||||
return /** @type {boolean} */ (
|
||||
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setCanUse =
|
||||
function (value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 3, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string memo = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getMemo =
|
||||
function () {
|
||||
return /** @type {string} */ (
|
||||
jspb.Message.getFieldWithDefault(this, 4, "")
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setMemo =
|
||||
function (value) {
|
||||
return jspb.Message.setField(this, 4, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.clearMemo =
|
||||
function () {
|
||||
return jspb.Message.setField(this, 4, undefined);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.hasMemo =
|
||||
function () {
|
||||
return jspb.Message.getField(this, 4) != null;
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 created_at = 5;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getCreatedAt =
|
||||
function () {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setCreatedAt =
|
||||
function (value) {
|
||||
return jspb.Message.setProto3IntField(this, 5, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 updated_at = 6;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.getUpdatedAt =
|
||||
function () {
|
||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.member_referrer.MemberReferrerModel} returns this
|
||||
*/
|
||||
proto.bet.beteran.member_referrer.MemberReferrerModel.prototype.setUpdatedAt =
|
||||
function (value) {
|
||||
return jspb.Message.setProto3IntField(this, 6, value);
|
||||
};
|
||||
|
||||
goog.object.extend(exports, proto.bet.beteran.member_referrer);
|
|
@ -2,7 +2,6 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
|||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||
import { MatDialogRef } from '@angular/material/dialog';
|
||||
import { IdentityService } from 'app/modules/polyglot/identity/services/identity.service';
|
||||
import { MemberService } from 'app/modules/polyglot/member/services/member.service';
|
||||
|
||||
@Component({
|
||||
selector: 'sign-up-compose',
|
||||
|
@ -29,8 +28,7 @@ export class SignUpComposeComponent implements OnInit {
|
|||
constructor(
|
||||
public matDialogRef: MatDialogRef<SignUpComposeComponent>,
|
||||
private _formBuilder: FormBuilder,
|
||||
private _identityService: IdentityService,
|
||||
private _memberService: MemberService
|
||||
private _identityService: IdentityService
|
||||
) {
|
||||
this._identityService
|
||||
.checkUsernameForDuplication('administrator')
|
||||
|
|
Loading…
Reference in New Issue
Block a user