Merge branch 'feature/BETERAN-BACKEND-APP-BROWSER-init' of https://gitlab.loafle.net/bet/beteran-backend-app-browser into feature/BETERAN-BACKEND-APP-BROWSER-init
This commit is contained in:
commit
621899e348
|
@ -30,8 +30,8 @@
|
|||
<div
|
||||
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto overflow-x-auto overflow-y-hidden"
|
||||
>
|
||||
<ng-container *ngIf="partners$ | async as partners">
|
||||
<ng-container *ngIf="partners.length > 0; else noPartner">
|
||||
<ng-container *ngIf="listPartner$ | async as listPartner">
|
||||
<ng-container *ngIf="listPartner.length > 0; else noPartner">
|
||||
<div class="grid">
|
||||
<!-- Header -->
|
||||
<div
|
||||
|
@ -73,9 +73,9 @@
|
|||
<div class="hidden lg:block">비고</div>
|
||||
</div>
|
||||
<!-- Rows -->
|
||||
<ng-container *ngIf="partners$ | async as partners">
|
||||
<ng-container *ngIf="listPartner$ | async as listPartner">
|
||||
<ng-container
|
||||
*ngFor="let partner of partners; trackBy: __trackByFn"
|
||||
*ngFor="let partner of listPartner; trackBy: __trackByFn"
|
||||
>
|
||||
<div
|
||||
class="partner-grid grid items-center gap-4 py-3 px-6 md:px-8 border-b"
|
||||
|
@ -104,71 +104,64 @@
|
|||
<div [matTooltip]="__getRateTooltop()">요율</div>
|
||||
<hr style="margin: 7px 0px" />
|
||||
<div>
|
||||
<div>
|
||||
{{ partner.branchCount }}{{ partner.divisionCount }}
|
||||
{{ partner.officeCount }}{{ partner.storeCount
|
||||
}}{{ partner.memberCount }}
|
||||
</div>
|
||||
<div>2 3 2 1 5</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 아이디/닉네임/연락처 -->
|
||||
<div
|
||||
class="hidden lg:block"
|
||||
(click)="viewUserDetail(partner.id)"
|
||||
(click)="viewUserDetail(partner.getId())"
|
||||
style="cursor: pointer"
|
||||
>
|
||||
{{ partner.signinId }}
|
||||
{{ partner.getUsername() }}
|
||||
<hr style="margin: 7px 0px" />
|
||||
{{ partner.nickname }}
|
||||
{{ partner.getNickname() }}
|
||||
<hr style="margin: 7px 0px" />
|
||||
{{ partner.phoneNumber }}
|
||||
{{ partner.getMobilePhoneNumber() }}
|
||||
</div>
|
||||
<!-- 등급/레벨/상태 -->
|
||||
<div class="hidden lg:block">
|
||||
{{ partner.rank }}
|
||||
{{ partner.getMemberClass()?.getName() }}
|
||||
<hr style="margin: 7px 0px" />
|
||||
LV{{ partner.level }}
|
||||
LV{{ partner.getMemberLevel()?.getName() }}
|
||||
<hr style="margin: 7px 0px" />
|
||||
{{ partner.state }}
|
||||
{{ partner.getState() }}
|
||||
</div>
|
||||
<!-- 예금주 -->
|
||||
<div class="hidden lg:block">
|
||||
{{ partner.accountHolder }}
|
||||
</div>
|
||||
<div class="hidden lg:block">예금주</div>
|
||||
<!-- 정산종류 -->
|
||||
<div class="hidden lg:block">
|
||||
{{ partner.calculateType }}
|
||||
</div>
|
||||
<div class="hidden lg:block">정산종류</div>
|
||||
<!-- 보유금 -->
|
||||
<div class="hidden lg:block">
|
||||
캐쉬{{ partner.ownCash }}
|
||||
캐쉬: 2,900
|
||||
<hr style="margin: 7px 0px" />
|
||||
콤프{{ partner.ownComp }}P
|
||||
콤프: 3,000P
|
||||
<hr style="margin: 7px 0px" />
|
||||
쿠폰{{ partner.ownCoupon }}
|
||||
쿠폰: 2,000
|
||||
</div>
|
||||
<!-- 충전금 -->
|
||||
<div class="hidden lg:block">
|
||||
본인{{ partner.ownCharge }}
|
||||
본인: 2,900
|
||||
<hr style="margin: 7px 0px" />
|
||||
하부{{ partner.bottomCharge }}
|
||||
하부 1,900
|
||||
</div>
|
||||
<!-- 환전금 -->
|
||||
<div class="hidden lg:block">
|
||||
본인{{ partner.ownExchange }}
|
||||
본인: 2,900
|
||||
<hr style="margin: 7px 0px" />
|
||||
하부{{ partner.bottomExchange }}
|
||||
하부: 2,800
|
||||
</div>
|
||||
<!-- 수익금 -->
|
||||
<div class="hidden lg:block">
|
||||
본인{{ partner.ownRevenue }}
|
||||
본인: 2,900
|
||||
<hr style="margin: 7px 0px" />
|
||||
하부{{ partner.bottomRevenue }}
|
||||
하부: 2,800
|
||||
</div>
|
||||
<!-- 가입날짜 -->
|
||||
<div class="hidden lg:block">
|
||||
{{ partner.registrationDate }}
|
||||
<!-- {{ partner.getCreatedAt() }} -->
|
||||
{{ partner.getCreatedAt() | date: "yyyy/MM/dd" }}
|
||||
</div>
|
||||
<!-- 비고 -->
|
||||
<div class="hidden lg:block">
|
||||
|
@ -176,7 +169,7 @@
|
|||
mat-flat-button
|
||||
class="bet-mat-small-8"
|
||||
[color]="'primary'"
|
||||
(click)="__onClickRegist($event)"
|
||||
(click)="__onClickRegist($event, partner)"
|
||||
>
|
||||
대본등록
|
||||
</button>
|
||||
|
|
|
@ -8,23 +8,22 @@ import {
|
|||
ViewChild,
|
||||
ViewEncapsulation,
|
||||
} from '@angular/core';
|
||||
import {
|
||||
FormBuilder,
|
||||
FormControl,
|
||||
FormGroup,
|
||||
Validators,
|
||||
} from '@angular/forms';
|
||||
import { MatCheckboxChange } from '@angular/material/checkbox';
|
||||
import { FormBuilder, FormControl } from '@angular/forms';
|
||||
|
||||
import { MatPaginator } from '@angular/material/paginator';
|
||||
import { MatSort } from '@angular/material/sort';
|
||||
import {
|
||||
debounceTime,
|
||||
delay,
|
||||
map,
|
||||
merge,
|
||||
Observable,
|
||||
of,
|
||||
startWith,
|
||||
Subject,
|
||||
switchMap,
|
||||
takeUntil,
|
||||
timer,
|
||||
} from 'rxjs';
|
||||
import { fuseAnimations } from '@fuse/animations';
|
||||
import { FuseConfirmationService } from '@fuse/services/confirmation';
|
||||
|
@ -32,14 +31,20 @@ import { FuseConfirmationService } from '@fuse/services/confirmation';
|
|||
import { Partner } from '../models/partner';
|
||||
import { PartnerPagination } from '../models/partner-pagination';
|
||||
import { PartnerService } from '../services/partner.service';
|
||||
import { Router } from '@angular/router';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { RegistComposeComponent } from '../compose/regist-compose.component';
|
||||
import { CashComposeComponent } from '../compose/cash-compose.component';
|
||||
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { SiteService } from 'app/modules/polyglot/domain/services/site.service';
|
||||
import { Site } from 'app/modules/protobuf/models/domain/site_pb';
|
||||
import { MembeerService } from 'app/modules/polyglot/member/services/member.service';
|
||||
import { MemberService } from 'app/modules/polyglot/member/services/member.service';
|
||||
import { MemberModel } from 'app/modules/protobuf/models/member/member_pb';
|
||||
import {
|
||||
ListMembersRequest,
|
||||
ListMembersResponse,
|
||||
} from 'app/modules/protobuf/c2se/backend/member_pb';
|
||||
import { Pagination } from 'app/modules/protobuf/protobuf/pagination/pagination_pb';
|
||||
@Component({
|
||||
selector: 'partner-list',
|
||||
templateUrl: './list.component.html',
|
||||
|
@ -78,13 +83,16 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
@ViewChild(MatPaginator) private _paginator!: MatPaginator;
|
||||
@ViewChild(MatSort) private _sort!: MatSort;
|
||||
|
||||
partners$!: Observable<Partner[] | undefined>;
|
||||
/* partners$!: Observable<Partner[] | undefined>; */
|
||||
|
||||
listPartner$!: Observable<MemberModel[] | undefined>;
|
||||
|
||||
isLoading = false;
|
||||
searchInputControl = new FormControl();
|
||||
selectedPartner?: Partner;
|
||||
pagination?: PartnerPagination;
|
||||
sites!: Site[];
|
||||
__members: MemberModel[] = [];
|
||||
|
||||
private _unsubscribeAll: Subject<any> = new Subject<any>();
|
||||
|
||||
|
@ -95,8 +103,9 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
private _changeDetectorRef: ChangeDetectorRef,
|
||||
private _fuseConfirmationService: FuseConfirmationService,
|
||||
private _formBuilder: FormBuilder,
|
||||
private _activatedRoute: ActivatedRoute,
|
||||
private _partnerService: PartnerService,
|
||||
private __memberService: MembeerService,
|
||||
private __memberService: MemberService,
|
||||
private _siteService: SiteService,
|
||||
private router: Router,
|
||||
private _matDialog: MatDialog
|
||||
|
@ -121,15 +130,23 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
this._changeDetectorRef.markForCheck();
|
||||
});
|
||||
|
||||
// Get the products
|
||||
this.partners$ = this._partnerService.partners$;
|
||||
|
||||
this._siteService
|
||||
.listSites()
|
||||
.then((result) => {
|
||||
this.sites = result.getSitesList();
|
||||
})
|
||||
.catch((reson) => console.log(reson));
|
||||
// Get the products
|
||||
|
||||
this._activatedRoute.data.subscribe((data) => {
|
||||
let listMemberResult: ListMembersResponse.Result = data['listPartner'];
|
||||
this.listPartner$ = of(listMemberResult.getMembersList());
|
||||
|
||||
/* console.log('dddd', listMemberResult.getMembersList()); */
|
||||
|
||||
// Mark for check
|
||||
this._changeDetectorRef.markForCheck();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -145,7 +162,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
});
|
||||
|
||||
// Mark for check
|
||||
this._changeDetectorRef.markForCheck();
|
||||
this._changeDetectorRef.detectChanges();
|
||||
|
||||
// If the partner changes the sort order...
|
||||
this._sort.sortChange
|
||||
|
@ -160,12 +177,15 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
.pipe(
|
||||
switchMap(() => {
|
||||
this.isLoading = true;
|
||||
return this._partnerService.getPartners(
|
||||
this._paginator.pageIndex,
|
||||
this._paginator.pageSize,
|
||||
this._sort.active,
|
||||
this._sort.direction
|
||||
);
|
||||
|
||||
let req = new ListMembersRequest();
|
||||
let paging = new Pagination();
|
||||
paging.setPage(this._paginator.pageIndex);
|
||||
paging.setPageSize(this._paginator.pageSize);
|
||||
|
||||
req.setPagination(paging);
|
||||
req.setMemberClassId('4b014ef5-3bab-4413-aaf9-b0040a70ec77');
|
||||
return of(this.__memberService.listMembers(req));
|
||||
}),
|
||||
map(() => {
|
||||
this.isLoading = false;
|
||||
|
@ -218,9 +238,9 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
return item.id || index;
|
||||
}
|
||||
|
||||
__onClickRegist(event: MouseEvent): void {
|
||||
__onClickRegist(event: MouseEvent, partner: MemberModel): void {
|
||||
const dialogRef = this._matDialog.open(RegistComposeComponent, {
|
||||
data: { title: '대본', parentId: 'kgon2', sites: this.sites },
|
||||
data: { title: '대본 등록하기', parent: partner, sites: this.sites },
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((result) => {
|
||||
|
|
|
@ -25,25 +25,26 @@
|
|||
|
||||
<!-- <div *ngFor="let f of sites">{{ f.getUrl() }}</div> -->
|
||||
<!-- Cc -->
|
||||
<mat-form-field>
|
||||
<!-- <mat-form-field>
|
||||
<mat-label>사이트명</mat-label>
|
||||
<input matInput [formControlName]="'siteName'" />
|
||||
<mat-error *ngIf="composeForm.get('siteName')?.hasError('required')">
|
||||
사이트명은 필수 입력입니다.
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
</mat-form-field> -->
|
||||
|
||||
<!-- <mat-form-field>
|
||||
<mat-form-field>
|
||||
<mat-label>사이트명</mat-label>
|
||||
|
||||
<mat-select [formControlName]="'siteName'" placeholder="사이트 선택">
|
||||
<mat-option *ngFor="let site of sites" [value]="site.getId()">
|
||||
<mat-option *ngFor="let site of data.sites" [value]="site.getId()">
|
||||
{{ site.getUrl() }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
<mat-error *ngIf="composeForm.get('siteName')?.hasError('required')">
|
||||
사이트명은 필수 입력입니다.
|
||||
</mat-error>
|
||||
</mat-form-field> -->
|
||||
</mat-form-field>
|
||||
|
||||
<!-- Bcc -->
|
||||
<mat-form-field>
|
||||
|
|
|
@ -10,10 +10,11 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|||
import { SiteService } from 'app/modules/polyglot/domain/services/site.service';
|
||||
import { IdentityService } from 'app/modules/polyglot/member/services/identity.service';
|
||||
import { Site } from 'app/modules/protobuf/models/domain/site_pb';
|
||||
import { MemberModel } from 'app/modules/protobuf/models/member/member_pb';
|
||||
|
||||
export interface RegistComposeData {
|
||||
title: string;
|
||||
parentId: string;
|
||||
parent: MemberModel;
|
||||
sites: Site[];
|
||||
}
|
||||
export interface RegistComposeResult {
|
||||
|
@ -56,10 +57,7 @@ export class RegistComposeComponent implements OnInit {
|
|||
private _identityService: IdentityService,
|
||||
private _changeDetectorRef: ChangeDetectorRef
|
||||
) {
|
||||
this.data.sites.map((v) => {
|
||||
const a = v.toObject();
|
||||
this.sites.push(a);
|
||||
});
|
||||
this.data.sites.forEach((v) => console.log(v.getUrl()));
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
@ -72,7 +70,7 @@ export class RegistComposeComponent implements OnInit {
|
|||
ngOnInit(): void {
|
||||
// Create the form
|
||||
this.composeForm = this._formBuilder.group({
|
||||
partnerId: [{ value: this.data.parentId, disabled: true }],
|
||||
partnerId: [{ value: this.data.parent.getUsername(), disabled: true }],
|
||||
siteName: ['', [Validators.required]],
|
||||
signinId: ['', [Validators.required]],
|
||||
password: ['', [Validators.required]],
|
||||
|
@ -114,7 +112,9 @@ export class RegistComposeComponent implements OnInit {
|
|||
/**
|
||||
* Send the message
|
||||
*/
|
||||
send(): void {}
|
||||
send(): void {
|
||||
console.log(this.composeForm.value);
|
||||
}
|
||||
|
||||
__checkSigninId(event: FocusEvent): void {
|
||||
const signinId = this.composeForm.get('signinId')?.value;
|
||||
|
@ -127,7 +127,7 @@ export class RegistComposeComponent implements OnInit {
|
|||
.get('signinId')
|
||||
?.setErrors({ signinIdDuplicate: true });
|
||||
}
|
||||
this._changeDetectorRef.markForCheck();
|
||||
// this._changeDetectorRef.markForCheck();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -142,23 +142,7 @@ export class RegistComposeComponent implements OnInit {
|
|||
.get('nickname')
|
||||
?.setErrors({ nicknameDuplicate: true });
|
||||
}
|
||||
this._changeDetectorRef.markForCheck();
|
||||
// this._changeDetectorRef.markForCheck();
|
||||
});
|
||||
}
|
||||
|
||||
// checkSameName(): ValidatorFn {
|
||||
// return (control: AbstractControl): { [key: string]: any } | null => {
|
||||
// if (
|
||||
// !control ||
|
||||
// !control.value ||
|
||||
// !this.groupList ||
|
||||
// 0 === this.groupList.length
|
||||
// ) {
|
||||
// return null;
|
||||
// }
|
||||
// const v = (control.value as string).trim();
|
||||
// const ban = -1 < this.groupList.findIndex((g) => g.name === v);
|
||||
// return ban ? { groupNameSamed: { value: control.value } } : null;
|
||||
// };
|
||||
// }
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ import { COMPONENTS } from './components';
|
|||
import { COMPOSE } from './compose';
|
||||
|
||||
import { partnerRoutes } from './partner.routing';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
|
||||
@NgModule({
|
||||
declarations: [COMPONENTS, COMPOSE],
|
||||
|
@ -36,6 +37,7 @@ import { partnerRoutes } from './partner.routing';
|
|||
ReactiveFormsModule,
|
||||
FormsModule,
|
||||
|
||||
MatDialogModule,
|
||||
MatButtonModule,
|
||||
MatFormFieldModule,
|
||||
MatIconModule,
|
||||
|
|
|
@ -2,7 +2,10 @@ import { Route } from '@angular/router';
|
|||
|
||||
import { ListComponent } from './components/list.component';
|
||||
|
||||
import { PartnersResolver } from './resolvers/partner.resolver';
|
||||
import {
|
||||
PartnerListResolver,
|
||||
PartnersResolver,
|
||||
} from './resolvers/partner.resolver';
|
||||
|
||||
export const partnerRoutes: Route[] = [
|
||||
// {
|
||||
|
@ -14,7 +17,7 @@ export const partnerRoutes: Route[] = [
|
|||
path: 'all',
|
||||
component: ListComponent,
|
||||
resolve: {
|
||||
Partners: PartnersResolver,
|
||||
listPartner: PartnerListResolver,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
@ -5,6 +5,12 @@ import {
|
|||
Router,
|
||||
RouterStateSnapshot,
|
||||
} from '@angular/router';
|
||||
import { MemberService } from 'app/modules/polyglot/member/services/member.service';
|
||||
import {
|
||||
ListMembersRequest,
|
||||
ListMembersResponse,
|
||||
} from 'app/modules/protobuf/c2se/backend/member_pb';
|
||||
import { Pagination } from 'app/modules/protobuf/protobuf/pagination/pagination_pb';
|
||||
import { catchError, Observable, throwError } from 'rxjs';
|
||||
|
||||
import { Partner } from '../models/partner';
|
||||
|
@ -87,3 +93,37 @@ export class PartnersResolver implements Resolve<any> {
|
|||
return this._partnerService.getPartners();
|
||||
}
|
||||
}
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class PartnerListResolver implements Resolve<any> {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
constructor(private __memberService: MemberService) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Resolver
|
||||
*
|
||||
* @param route
|
||||
* @param state
|
||||
*/
|
||||
resolve(
|
||||
route: ActivatedRouteSnapshot,
|
||||
state: RouterStateSnapshot
|
||||
):
|
||||
| Observable<ListMembersResponse.Result>
|
||||
| Promise<ListMembersResponse.Result>
|
||||
| ListMembersResponse.Result {
|
||||
let req = new ListMembersRequest();
|
||||
|
||||
req.setMemberClassId('4b014ef5-3bab-4413-aaf9-b0040a70ec77');
|
||||
|
||||
return this.__memberService.listMembers(req);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,9 @@
|
|||
<div class="flex items-center text-secondary my-1">
|
||||
<span>가입일자</span>
|
||||
<span class="mx-2">•</span>
|
||||
<span>{{ selectedUser?.registrationDate }}</span>
|
||||
<span>{{
|
||||
selectedUser?.getCreatedAt() | date: "yyyy/MM/dd HH:mm"
|
||||
}}</span>
|
||||
</div>
|
||||
<div class="flex items-center text-secondary my-1">
|
||||
<span>하부회원수</span>
|
||||
|
@ -61,17 +63,17 @@
|
|||
<div class="flex items-center text-secondary my-1">
|
||||
<span>총입금</span>
|
||||
<span class="mx-2">•</span>
|
||||
<span>{{ selectedUser?.totalDeposit }}</span>
|
||||
<span>2,000</span>
|
||||
</div>
|
||||
<div class="flex items-center text-secondary my-1">
|
||||
<span>총출금</span>
|
||||
<span class="mx-2">•</span>
|
||||
<span>{{ selectedUser?.totalWithdraw }}</span>
|
||||
<span>2,000</span>
|
||||
</div>
|
||||
<div class="flex items-center text-secondary my-1">
|
||||
<span>총입금-총출금</span>
|
||||
<span class="mx-2">•</span>
|
||||
<span>{{ selectedUser?.balance }}</span>
|
||||
<span>2,000</span>
|
||||
</div>
|
||||
<div class="flex items-center text-secondary my-1">
|
||||
<span>최근30일 배팅금액</span>
|
||||
|
@ -97,10 +99,7 @@
|
|||
<div class="shadow-lg overflow-hidden">
|
||||
<div class="flex border-b">
|
||||
<!-- Selected product form -->
|
||||
<form
|
||||
class="flex flex-col w-full"
|
||||
[formGroup]="selectedProductForm"
|
||||
>
|
||||
<form class="flex flex-col w-full" [formGroup]="memberViewForm">
|
||||
<div class="flex flex-col sm:flex-row p-8">
|
||||
<!-- Product images and status -->
|
||||
|
||||
|
@ -479,7 +478,13 @@
|
|||
<span class="ml-2">An error occurred, try again!</span>
|
||||
</ng-container>
|
||||
</div>
|
||||
<button mat-flat-button [color]="'primary'">수정하기</button>
|
||||
<button
|
||||
mat-flat-button
|
||||
[color]="'primary'"
|
||||
(click)="__modifyMember()"
|
||||
>
|
||||
수정하기
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -31,6 +31,10 @@ import { FuseConfirmationService } from '@fuse/services/confirmation';
|
|||
|
||||
import { User } from '../models/user';
|
||||
import { UserService } from '../services/user.service';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { GetMemberResponse } from 'app/modules/protobuf/c2se/backend/member_pb';
|
||||
import { MemberModel } from 'app/modules/protobuf/models/member/member_pb';
|
||||
import { MemberService } from 'app/modules/polyglot/member/services/member.service';
|
||||
|
||||
@Component({
|
||||
selector: 'user-view',
|
||||
|
@ -65,8 +69,9 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
|
||||
isLoading = false;
|
||||
searchInputControl = new FormControl();
|
||||
selectedProductForm!: FormGroup;
|
||||
selectedUser?: User;
|
||||
memberViewForm!: FormGroup;
|
||||
/* selectedUser?: User; */
|
||||
selectedUser?: MemberModel;
|
||||
|
||||
private _unsubscribeAll: Subject<any> = new Subject<any>();
|
||||
|
||||
|
@ -74,10 +79,12 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
* Constructor
|
||||
*/
|
||||
constructor(
|
||||
private _activatedRoute: ActivatedRoute,
|
||||
private _changeDetectorRef: ChangeDetectorRef,
|
||||
private _fuseConfirmationService: FuseConfirmationService,
|
||||
private _formBuilder: FormBuilder,
|
||||
private _userService: UserService
|
||||
private _userService: UserService,
|
||||
private _memberService: MemberService
|
||||
) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
@ -88,7 +95,7 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
* On init
|
||||
*/
|
||||
ngOnInit(): void {
|
||||
this.selectedProductForm = this._formBuilder.group({
|
||||
this.memberViewForm = this._formBuilder.group({
|
||||
id: [''],
|
||||
signinId: [{ value: '', disabled: true }],
|
||||
signinPw: [{ value: '' }],
|
||||
|
@ -121,7 +128,7 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
});
|
||||
|
||||
// Get the User
|
||||
this._userService.user$
|
||||
/* this._userService.user$
|
||||
.pipe(takeUntil(this._unsubscribeAll))
|
||||
.subscribe((user: User | undefined) => {
|
||||
if (!user) {
|
||||
|
@ -129,12 +136,31 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
}
|
||||
this.selectedUser = user;
|
||||
|
||||
this.selectedProductForm.patchValue(user);
|
||||
this.memberViewForm.patchValue(user);
|
||||
// Mark for check
|
||||
this._changeDetectorRef.markForCheck();
|
||||
});
|
||||
}); */
|
||||
|
||||
/* this.user$ = this._userService.user$; */
|
||||
|
||||
this._activatedRoute.data.subscribe((data) => {
|
||||
let member: GetMemberResponse.Result = data['member'];
|
||||
|
||||
this.selectedUser = member.getMember();
|
||||
|
||||
/* console.log('dddd', listMemberResult.getMembersList()); */
|
||||
this.memberViewForm.patchValue({
|
||||
signinId: this.selectedUser?.getUsername(),
|
||||
signinPw: '1234',
|
||||
exchangePw: '1234',
|
||||
phoneNumber: this.selectedUser?.getMobilePhoneNumber(),
|
||||
level: this.selectedUser?.getMemberLevel()?.getName(),
|
||||
status: this.selectedUser?.getState(),
|
||||
nickname: this.selectedUser?.getNickname(),
|
||||
});
|
||||
// Mark for check
|
||||
this._changeDetectorRef.markForCheck();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -180,4 +206,16 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
__trackByFn(index: number, item: any): any {
|
||||
return item.id || index;
|
||||
}
|
||||
|
||||
__modifyMember(): void {
|
||||
const valueForm = this.memberViewForm.value;
|
||||
console.log('v: ', valueForm);
|
||||
this._memberService.updateMember(
|
||||
this.selectedUser!.getId(),
|
||||
this.selectedUser!.getSite()!.getId(),
|
||||
this.selectedUser!.getMemberLevel()!.getId(),
|
||||
'beteran',
|
||||
valueForm.phoneNumber
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,8 @@ import {
|
|||
Router,
|
||||
RouterStateSnapshot,
|
||||
} from '@angular/router';
|
||||
import { MemberService } from 'app/modules/polyglot/member/services/member.service';
|
||||
import { GetMemberResponse } from 'app/modules/protobuf/c2se/backend/member_pb';
|
||||
import { catchError, Observable, throwError } from 'rxjs';
|
||||
|
||||
import { User } from '../models/user';
|
||||
|
@ -82,3 +84,38 @@ export class UsersResolver implements Resolve<any> {
|
|||
return this._userService.getUsers();
|
||||
}
|
||||
}
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class MemberResolver implements Resolve<any> {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
constructor(private _router: Router, private _memberService: MemberService) {}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Resolver
|
||||
*
|
||||
* @param route
|
||||
* @param state
|
||||
*/
|
||||
|
||||
resolve(
|
||||
route: ActivatedRouteSnapshot,
|
||||
state: RouterStateSnapshot
|
||||
):
|
||||
| Observable<GetMemberResponse.Result>
|
||||
| Promise<GetMemberResponse.Result>
|
||||
| GetMemberResponse.Result {
|
||||
let memberId = route.paramMap.get('id');
|
||||
if (!memberId) {
|
||||
console.error('user.resolver memberId is null');
|
||||
}
|
||||
return this._memberService.getMember(memberId!);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,11 @@ import { Route } from '@angular/router';
|
|||
import { ListComponent } from 'app/modules/admin/member/user/components/list.component';
|
||||
import { ViewComponent } from 'app/modules/admin/member/user/components/view.component';
|
||||
|
||||
import { UsersResolver, UserResolver } from './resolvers/user.resolver';
|
||||
import {
|
||||
UsersResolver,
|
||||
UserResolver,
|
||||
MemberResolver,
|
||||
} from './resolvers/user.resolver';
|
||||
|
||||
export const userRoutes: Route[] = [
|
||||
{
|
||||
|
@ -17,7 +21,7 @@ export const userRoutes: Route[] = [
|
|||
path: ':id',
|
||||
component: ViewComponent,
|
||||
resolve: {
|
||||
user: UserResolver,
|
||||
member: MemberResolver,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Type } from '@angular/core';
|
||||
|
||||
import { IdentityService } from './identity.service';
|
||||
import { MembeerService } from './member.service';
|
||||
import { MemberService } from './member.service';
|
||||
|
||||
export const SERVICES: Type<any>[] = [IdentityService, MembeerService];
|
||||
export const SERVICES: Type<any>[] = [IdentityService, MemberService];
|
||||
|
|
|
@ -14,12 +14,16 @@ import {
|
|||
SUBJECT_LIST_MEMBERS,
|
||||
SUBJECT_GET_MEMBER,
|
||||
SUBJECT_GET_MEMBER_BY_USERNAME,
|
||||
UpdateMemberRequest,
|
||||
UpdateMemberResponse,
|
||||
SUBJECT_UPDATE_MEMBER,
|
||||
} from 'app/modules/protobuf/c2se/backend/member_pb';
|
||||
import { Pagination } from 'app/modules/protobuf/protobuf/pagination/pagination_pb';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class MembeerService {
|
||||
export class MemberService {
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
|
@ -33,9 +37,19 @@ export class MembeerService {
|
|||
// @ Public methods
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
|
||||
listMembers(): Promise<ListMembersResponse.Result> {
|
||||
listMembers(req?: ListMembersRequest): Promise<ListMembersResponse.Result> {
|
||||
return new Promise<ListMembersResponse.Result>((resolve, reject) => {
|
||||
let req = new ListMembersRequest();
|
||||
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>(
|
||||
|
@ -97,4 +111,92 @@ export class MembeerService {
|
|||
}
|
||||
);
|
||||
}
|
||||
|
||||
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(
|
||||
// siteId: string = '8429a7ab-b9de-400b-a209-28ff46e22bec',
|
||||
// memberLevelId: string = 'c56231ac-2120-4a81-a30a-5d41fafb6c57',
|
||||
// classId: string = '4b014ef5-3bab-4413-aaf9-b0040a70ec77',
|
||||
// signinId: string,
|
||||
// nickname: string,
|
||||
// password: string,
|
||||
// mobilePhoneNumber: string
|
||||
// ): Promise<MemberRequ.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);
|
||||
// });
|
||||
// });
|
||||
// }
|
||||
}
|
||||
|
|
9
src/app/modules/protobuf/c2se/backend/account_pb.d.ts
vendored
Normal file
9
src/app/modules/protobuf/c2se/backend/account_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
// package:
|
||||
// file: c2se/backend/account.proto
|
||||
|
||||
import * as jspb from 'google-protobuf';
|
||||
|
||||
export const SUBJECT_CREATE_BANK: string;
|
||||
export const SUBJECT_LIST_BANKS: string;
|
||||
export const SUBJECT_UPDATE_BANK: string;
|
||||
export const SUBJECT_DELETE_BANK: string;
|
33
src/app/modules/protobuf/c2se/backend/account_pb.js
Normal file
33
src/app/modules/protobuf/c2se/backend/account_pb.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
// source: c2se/backend/account.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("bet.beteran.c2se.backend.bank", null, global);
|
||||
|
||||
bet.beteran.c2se.backend.bank = {};
|
||||
|
||||
bet.beteran.c2se.backend.bank.SUBJECT_CREATE_BANK =
|
||||
"bet.beteran.c2se.core.network.CreateBank";
|
||||
bet.beteran.c2se.backend.bank.SUBJECT_LIST_BANKS =
|
||||
"bet.beteran.c2se.core.network.ListBanks";
|
||||
bet.beteran.c2se.backend.bank.SUBJECT_UPDATE_BANK =
|
||||
"bet.beteran.c2se.core.network.UpdateBank";
|
||||
bet.beteran.c2se.backend.bank.SUBJECT_DELETE_BANK =
|
||||
"bet.beteran.c2se.core.network.DeleteBank";
|
||||
|
||||
goog.object.extend(exports, bet.beteran.c2se.backend.bank);
|
364
src/app/modules/protobuf/c2se/backend/member_pb.d.ts
vendored
364
src/app/modules/protobuf/c2se/backend/member_pb.d.ts
vendored
|
@ -8,11 +8,12 @@ import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search
|
|||
import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb';
|
||||
import * as models_member_member_pb from '../../models/member/member_pb';
|
||||
|
||||
export const SUBJECT_CREATE_MEMBER: string;
|
||||
export const SUBJECT_LIST_MEMBERS: string;
|
||||
|
||||
export const SUBJECT_GET_MEMBER: string;
|
||||
|
||||
export const SUBJECT_GET_MEMBER_BY_USERNAME: string;
|
||||
export const SUBJECT_UPDATE_MEMBER: string;
|
||||
export const SUBJECT_DELETE_MEMBER: string;
|
||||
|
||||
export class ListMembersRequest extends jspb.Message {
|
||||
hasPagination(): boolean;
|
||||
|
@ -199,6 +200,140 @@ export namespace ListMembersResponse {
|
|||
}
|
||||
}
|
||||
|
||||
export class CreateMemberRequest extends jspb.Message {
|
||||
getSiteId(): string;
|
||||
setSiteId(value: string): void;
|
||||
|
||||
getMemberClassId(): string;
|
||||
setMemberClassId(value: string): void;
|
||||
|
||||
getMemberLevelId(): string;
|
||||
setMemberLevelId(value: string): void;
|
||||
|
||||
hasReferrerMemberUsername(): boolean;
|
||||
clearReferrerMemberUsername(): void;
|
||||
getReferrerMemberUsername(): string;
|
||||
setReferrerMemberUsername(value: string): void;
|
||||
|
||||
getUsername(): string;
|
||||
setUsername(value: string): void;
|
||||
|
||||
getNickname(): string;
|
||||
setNickname(value: string): void;
|
||||
|
||||
hasMobilePhoneNumber(): boolean;
|
||||
clearMobilePhoneNumber(): void;
|
||||
getMobilePhoneNumber(): string;
|
||||
setMobilePhoneNumber(value: string): void;
|
||||
|
||||
getState(): models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap];
|
||||
setState(
|
||||
value: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]
|
||||
): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateMemberRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: CreateMemberRequest
|
||||
): CreateMemberRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: CreateMemberRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateMemberRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: CreateMemberRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): CreateMemberRequest;
|
||||
}
|
||||
|
||||
export namespace CreateMemberRequest {
|
||||
export type AsObject = {
|
||||
siteId: string;
|
||||
memberClassId: string;
|
||||
memberLevelId: string;
|
||||
referrerMemberUsername: string;
|
||||
username: string;
|
||||
nickname: string;
|
||||
mobilePhoneNumber: string;
|
||||
state: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap];
|
||||
};
|
||||
}
|
||||
|
||||
export class CreateMemberResponse extends jspb.Message {
|
||||
hasError(): boolean;
|
||||
clearError(): void;
|
||||
getError(): protobuf_rpc_error_pb.Error | undefined;
|
||||
setError(value?: protobuf_rpc_error_pb.Error): void;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): CreateMemberResponse.Result | undefined;
|
||||
setResult(value?: CreateMemberResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateMemberResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: CreateMemberResponse
|
||||
): CreateMemberResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: CreateMemberResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateMemberResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: CreateMemberResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): CreateMemberResponse;
|
||||
}
|
||||
|
||||
export namespace CreateMemberResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_error_pb.Error.AsObject;
|
||||
result?: CreateMemberResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
hasMember(): boolean;
|
||||
clearMember(): void;
|
||||
getMember(): models_member_member_pb.MemberModel | undefined;
|
||||
setMember(value?: models_member_member_pb.MemberModel): 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 = {
|
||||
member?: models_member_member_pb.MemberModel.AsObject;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class GetMemberRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
@ -398,3 +533,228 @@ export namespace GetMemberByUsernameResponse {
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateMemberRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
hasSiteId(): boolean;
|
||||
clearSiteId(): void;
|
||||
getSiteId(): string;
|
||||
setSiteId(value: string): void;
|
||||
|
||||
hasMemberLevelId(): boolean;
|
||||
clearMemberLevelId(): void;
|
||||
getMemberLevelId(): string;
|
||||
setMemberLevelId(value: string): void;
|
||||
|
||||
hasPassword(): boolean;
|
||||
clearPassword(): void;
|
||||
getPassword(): string;
|
||||
setPassword(value: string): void;
|
||||
|
||||
hasMobilePhoneNumber(): boolean;
|
||||
clearMobilePhoneNumber(): void;
|
||||
getMobilePhoneNumber(): string;
|
||||
setMobilePhoneNumber(value: string): void;
|
||||
|
||||
hasState(): boolean;
|
||||
clearState(): void;
|
||||
getState(): models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap];
|
||||
setState(
|
||||
value: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap]
|
||||
): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateMemberRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: UpdateMemberRequest
|
||||
): UpdateMemberRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: UpdateMemberRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateMemberRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: UpdateMemberRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): UpdateMemberRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateMemberRequest {
|
||||
export type AsObject = {
|
||||
id: string;
|
||||
siteId: string;
|
||||
memberLevelId: string;
|
||||
password: string;
|
||||
mobilePhoneNumber: string;
|
||||
state: models_member_member_pb.MemberStateMap[keyof models_member_member_pb.MemberStateMap];
|
||||
};
|
||||
}
|
||||
|
||||
export class UpdateMemberResponse extends jspb.Message {
|
||||
hasError(): boolean;
|
||||
clearError(): void;
|
||||
getError(): protobuf_rpc_error_pb.Error | undefined;
|
||||
setError(value?: protobuf_rpc_error_pb.Error): void;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): UpdateMemberResponse.Result | undefined;
|
||||
setResult(value?: UpdateMemberResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateMemberResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: UpdateMemberResponse
|
||||
): UpdateMemberResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: UpdateMemberResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateMemberResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: UpdateMemberResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): UpdateMemberResponse;
|
||||
}
|
||||
|
||||
export namespace UpdateMemberResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_error_pb.Error.AsObject;
|
||||
result?: UpdateMemberResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
hasMember(): boolean;
|
||||
clearMember(): void;
|
||||
getMember(): models_member_member_pb.MemberModel | undefined;
|
||||
setMember(value?: models_member_member_pb.MemberModel): 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 = {
|
||||
member?: models_member_member_pb.MemberModel.AsObject;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteMemberRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteMemberRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: DeleteMemberRequest
|
||||
): DeleteMemberRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: DeleteMemberRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteMemberRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: DeleteMemberRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): DeleteMemberRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteMemberRequest {
|
||||
export type AsObject = {
|
||||
id: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class DeleteMemberResponse extends jspb.Message {
|
||||
hasError(): boolean;
|
||||
clearError(): void;
|
||||
getError(): protobuf_rpc_error_pb.Error | undefined;
|
||||
setError(value?: protobuf_rpc_error_pb.Error): void;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): DeleteMemberResponse.Result | undefined;
|
||||
setResult(value?: DeleteMemberResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteMemberResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: DeleteMemberResponse
|
||||
): DeleteMemberResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: DeleteMemberResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteMemberResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: DeleteMemberResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): DeleteMemberResponse;
|
||||
}
|
||||
|
||||
export namespace DeleteMemberResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_error_pb.Error.AsObject;
|
||||
result?: DeleteMemberResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Result.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Result): Result.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: Result,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Result;
|
||||
static deserializeBinaryFromReader(
|
||||
message: Result,
|
||||
reader: jspb.BinaryReader
|
||||
): Result;
|
||||
}
|
||||
|
||||
export namespace Result {
|
||||
export type AsObject = {};
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
487
src/app/modules/protobuf/c2se/common/bank_pb.d.ts
vendored
Normal file
487
src/app/modules/protobuf/c2se/common/bank_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,487 @@
|
|||
// package: bet.beteran.c2se.common.bank
|
||||
// file: c2se/common/bank.proto
|
||||
|
||||
import * as jspb from 'google-protobuf';
|
||||
import * as protobuf_rpc_error_pb from '../../protobuf/rpc/error_pb';
|
||||
import * as protobuf_pagination_pagination_pb from '../../protobuf/pagination/pagination_pb';
|
||||
import * as protobuf_pagination_search_pb from '../../protobuf/pagination/search_pb';
|
||||
import * as protobuf_pagination_sort_pb from '../../protobuf/pagination/sort_pb';
|
||||
import * as models_account_bank_pb from '../../models/account/bank_pb';
|
||||
|
||||
export class ListBanksRequest extends jspb.Message {
|
||||
hasPagination(): boolean;
|
||||
clearPagination(): void;
|
||||
getPagination(): protobuf_pagination_pagination_pb.Pagination | undefined;
|
||||
setPagination(value?: protobuf_pagination_pagination_pb.Pagination): void;
|
||||
|
||||
clearSearchesList(): void;
|
||||
getSearchesList(): Array<protobuf_pagination_search_pb.Search>;
|
||||
setSearchesList(value: Array<protobuf_pagination_search_pb.Search>): void;
|
||||
addSearches(
|
||||
value?: protobuf_pagination_search_pb.Search,
|
||||
index?: number
|
||||
): protobuf_pagination_search_pb.Search;
|
||||
|
||||
clearSortsList(): void;
|
||||
getSortsList(): Array<protobuf_pagination_sort_pb.Sort>;
|
||||
setSortsList(value: Array<protobuf_pagination_sort_pb.Sort>): void;
|
||||
addSorts(
|
||||
value?: protobuf_pagination_sort_pb.Sort,
|
||||
index?: number
|
||||
): protobuf_pagination_sort_pb.Sort;
|
||||
|
||||
hasNameLike(): boolean;
|
||||
clearNameLike(): void;
|
||||
getNameLike(): string;
|
||||
setNameLike(value: string): void;
|
||||
|
||||
hasShow(): boolean;
|
||||
clearShow(): void;
|
||||
getShow(): boolean;
|
||||
setShow(value: boolean): 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): ListBanksRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: ListBanksRequest
|
||||
): ListBanksRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: ListBanksRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListBanksRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: ListBanksRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): ListBanksRequest;
|
||||
}
|
||||
|
||||
export namespace ListBanksRequest {
|
||||
export type AsObject = {
|
||||
pagination?: protobuf_pagination_pagination_pb.Pagination.AsObject;
|
||||
searchesList: Array<protobuf_pagination_search_pb.Search.AsObject>;
|
||||
sortsList: Array<protobuf_pagination_sort_pb.Sort.AsObject>;
|
||||
nameLike: string;
|
||||
show: boolean;
|
||||
canUse: boolean;
|
||||
memoLike: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class ListBanksResponse extends jspb.Message {
|
||||
hasError(): boolean;
|
||||
clearError(): void;
|
||||
getError(): protobuf_rpc_error_pb.Error | undefined;
|
||||
setError(value?: protobuf_rpc_error_pb.Error): void;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): ListBanksResponse.Result | undefined;
|
||||
setResult(value?: ListBanksResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): ListBanksResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: ListBanksResponse
|
||||
): ListBanksResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: ListBanksResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): ListBanksResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: ListBanksResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): ListBanksResponse;
|
||||
}
|
||||
|
||||
export namespace ListBanksResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_error_pb.Error.AsObject;
|
||||
result?: ListBanksResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
clearBanksList(): void;
|
||||
getBanksList(): Array<models_account_bank_pb.Bank>;
|
||||
setBanksList(value: Array<models_account_bank_pb.Bank>): void;
|
||||
addBanks(
|
||||
value?: models_account_bank_pb.Bank,
|
||||
index?: number
|
||||
): models_account_bank_pb.Bank;
|
||||
|
||||
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 = {
|
||||
banksList: Array<models_account_bank_pb.Bank.AsObject>;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class CreateBankRequest extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getShow(): boolean;
|
||||
setShow(value: boolean): void;
|
||||
|
||||
getCanUse(): boolean;
|
||||
setCanUse(value: boolean): void;
|
||||
|
||||
hasMemo(): boolean;
|
||||
clearMemo(): void;
|
||||
getMemo(): string;
|
||||
setMemo(value: string): void;
|
||||
|
||||
hasExpiresAt(): boolean;
|
||||
clearExpiresAt(): void;
|
||||
getExpiresAt(): number;
|
||||
setExpiresAt(value: number): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateBankRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: CreateBankRequest
|
||||
): CreateBankRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: CreateBankRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateBankRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: CreateBankRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): CreateBankRequest;
|
||||
}
|
||||
|
||||
export namespace CreateBankRequest {
|
||||
export type AsObject = {
|
||||
name: string;
|
||||
show: boolean;
|
||||
canUse: boolean;
|
||||
memo: string;
|
||||
expiresAt: number;
|
||||
};
|
||||
}
|
||||
|
||||
export class CreateBankResponse extends jspb.Message {
|
||||
hasError(): boolean;
|
||||
clearError(): void;
|
||||
getError(): protobuf_rpc_error_pb.Error | undefined;
|
||||
setError(value?: protobuf_rpc_error_pb.Error): void;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): CreateBankResponse.Result | undefined;
|
||||
setResult(value?: CreateBankResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): CreateBankResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: CreateBankResponse
|
||||
): CreateBankResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: CreateBankResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): CreateBankResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: CreateBankResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): CreateBankResponse;
|
||||
}
|
||||
|
||||
export namespace CreateBankResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_error_pb.Error.AsObject;
|
||||
result?: CreateBankResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
hasBank(): boolean;
|
||||
clearBank(): void;
|
||||
getBank(): models_account_bank_pb.Bank | undefined;
|
||||
setBank(value?: models_account_bank_pb.Bank): 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 = {
|
||||
bank?: models_account_bank_pb.Bank.AsObject;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class UpdateBankRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getShow(): boolean;
|
||||
setShow(value: boolean): void;
|
||||
|
||||
getCanUse(): boolean;
|
||||
setCanUse(value: boolean): void;
|
||||
|
||||
hasMemo(): boolean;
|
||||
clearMemo(): void;
|
||||
getMemo(): string;
|
||||
setMemo(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateBankRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: UpdateBankRequest
|
||||
): UpdateBankRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: UpdateBankRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateBankRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: UpdateBankRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): UpdateBankRequest;
|
||||
}
|
||||
|
||||
export namespace UpdateBankRequest {
|
||||
export type AsObject = {
|
||||
id: string;
|
||||
name: string;
|
||||
show: boolean;
|
||||
canUse: boolean;
|
||||
memo: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class UpdateBankResponse extends jspb.Message {
|
||||
hasError(): boolean;
|
||||
clearError(): void;
|
||||
getError(): protobuf_rpc_error_pb.Error | undefined;
|
||||
setError(value?: protobuf_rpc_error_pb.Error): void;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): UpdateBankResponse.Result | undefined;
|
||||
setResult(value?: UpdateBankResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): UpdateBankResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: UpdateBankResponse
|
||||
): UpdateBankResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: UpdateBankResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): UpdateBankResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: UpdateBankResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): UpdateBankResponse;
|
||||
}
|
||||
|
||||
export namespace UpdateBankResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_error_pb.Error.AsObject;
|
||||
result?: UpdateBankResponse.Result.AsObject;
|
||||
};
|
||||
|
||||
export class Result extends jspb.Message {
|
||||
hasBank(): boolean;
|
||||
clearBank(): void;
|
||||
getBank(): models_account_bank_pb.Bank | undefined;
|
||||
setBank(value?: models_account_bank_pb.Bank): 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 = {
|
||||
bank?: models_account_bank_pb.Bank.AsObject;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export class DeleteBankRequest extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteBankRequest.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: DeleteBankRequest
|
||||
): DeleteBankRequest.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: DeleteBankRequest,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteBankRequest;
|
||||
static deserializeBinaryFromReader(
|
||||
message: DeleteBankRequest,
|
||||
reader: jspb.BinaryReader
|
||||
): DeleteBankRequest;
|
||||
}
|
||||
|
||||
export namespace DeleteBankRequest {
|
||||
export type AsObject = {
|
||||
id: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class DeleteBankResponse extends jspb.Message {
|
||||
hasError(): boolean;
|
||||
clearError(): void;
|
||||
getError(): protobuf_rpc_error_pb.Error | undefined;
|
||||
setError(value?: protobuf_rpc_error_pb.Error): void;
|
||||
|
||||
hasResult(): boolean;
|
||||
clearResult(): void;
|
||||
getResult(): DeleteBankResponse.Result | undefined;
|
||||
setResult(value?: DeleteBankResponse.Result): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeleteBankResponse.AsObject;
|
||||
static toObject(
|
||||
includeInstance: boolean,
|
||||
msg: DeleteBankResponse
|
||||
): DeleteBankResponse.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: DeleteBankResponse,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeleteBankResponse;
|
||||
static deserializeBinaryFromReader(
|
||||
message: DeleteBankResponse,
|
||||
reader: jspb.BinaryReader
|
||||
): DeleteBankResponse;
|
||||
}
|
||||
|
||||
export namespace DeleteBankResponse {
|
||||
export type AsObject = {
|
||||
error?: protobuf_rpc_error_pb.Error.AsObject;
|
||||
result?: DeleteBankResponse.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 = {};
|
||||
}
|
||||
}
|
3171
src/app/modules/protobuf/c2se/common/bank_pb.js
Normal file
3171
src/app/modules/protobuf/c2se/common/bank_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
6
src/app/modules/protobuf/c2se/frontend/account_pb.d.ts
vendored
Normal file
6
src/app/modules/protobuf/c2se/frontend/account_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
// package:
|
||||
// file: c2se/frontend/account.proto
|
||||
|
||||
import * as jspb from 'google-protobuf';
|
||||
|
||||
export const SUBJECT_LIST_BANKS: string;
|
27
src/app/modules/protobuf/c2se/frontend/account_pb.js
Normal file
27
src/app/modules/protobuf/c2se/frontend/account_pb.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
// source: c2se/frontend/account.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("bet.beteran.c2se.frontend.bank", null, global);
|
||||
|
||||
bet.beteran.c2se.frontend.bank = {};
|
||||
|
||||
bet.beteran.c2se.frontend.bank.SUBJECT_LIST_BANKS =
|
||||
"bet.beteran.c2se.core.network.ListBanks";
|
||||
|
||||
goog.object.extend(exports, bet.beteran.c2se.frontend.bank);
|
58
src/app/modules/protobuf/models/account/bank_pb.d.ts
vendored
Normal file
58
src/app/modules/protobuf/models/account/bank_pb.d.ts
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
// package: bet.beteran.account
|
||||
// file: models/account/bank.proto
|
||||
|
||||
import * as jspb from 'google-protobuf';
|
||||
|
||||
export class Bank extends jspb.Message {
|
||||
getId(): string;
|
||||
setId(value: string): void;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): void;
|
||||
|
||||
getShow(): boolean;
|
||||
setShow(value: boolean): 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): Bank.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Bank): Bank.AsObject;
|
||||
static extensions: { [key: number]: jspb.ExtensionFieldInfo<jspb.Message> };
|
||||
static extensionsBinary: {
|
||||
[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>;
|
||||
};
|
||||
static serializeBinaryToWriter(
|
||||
message: Bank,
|
||||
writer: jspb.BinaryWriter
|
||||
): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Bank;
|
||||
static deserializeBinaryFromReader(
|
||||
message: Bank,
|
||||
reader: jspb.BinaryReader
|
||||
): Bank;
|
||||
}
|
||||
|
||||
export namespace Bank {
|
||||
export type AsObject = {
|
||||
id: string;
|
||||
name: string;
|
||||
show: boolean;
|
||||
canUse: boolean;
|
||||
memo: string;
|
||||
createdAt: number;
|
||||
updatedAt: number;
|
||||
};
|
||||
}
|
345
src/app/modules/protobuf/models/account/bank_pb.js
Normal file
345
src/app/modules/protobuf/models/account/bank_pb.js
Normal file
|
@ -0,0 +1,345 @@
|
|||
// source: models/account/bank.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.account.Bank", 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.account.Bank = function (opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.bet.beteran.account.Bank, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.displayName = "proto.bet.beteran.account.Bank";
|
||||
}
|
||||
|
||||
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.account.Bank.prototype.toObject = function (
|
||||
opt_includeInstance
|
||||
) {
|
||||
return proto.bet.beteran.account.Bank.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.account.Bank} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.toObject = function (includeInstance, msg) {
|
||||
var f,
|
||||
obj = {
|
||||
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
show: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
||||
canUse: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
||||
memo: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
createdAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||
updatedAt: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.bet.beteran.account.Bank}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.deserializeBinary = function (bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.bet.beteran.account.Bank();
|
||||
return proto.bet.beteran.account.Bank.deserializeBinaryFromReader(
|
||||
msg,
|
||||
reader
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.bet.beteran.account.Bank} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.bet.beteran.account.Bank}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.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.setName(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {boolean} */ reader.readBool();
|
||||
msg.setShow(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {boolean} */ reader.readBool();
|
||||
msg.setCanUse(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ reader.readString();
|
||||
msg.setMemo(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {number} */ reader.readUint64();
|
||||
msg.setCreatedAt(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = /** @type {number} */ reader.readUint64();
|
||||
msg.setUpdatedAt(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.serializeBinary = function () {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.bet.beteran.account.Bank.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.account.Bank} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.serializeBinaryToWriter = function (
|
||||
message,
|
||||
writer
|
||||
) {
|
||||
var f = undefined;
|
||||
f = message.getId();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(1, f);
|
||||
}
|
||||
f = message.getName();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(2, f);
|
||||
}
|
||||
f = message.getShow();
|
||||
if (f) {
|
||||
writer.writeBool(3, f);
|
||||
}
|
||||
f = message.getCanUse();
|
||||
if (f) {
|
||||
writer.writeBool(4, f);
|
||||
}
|
||||
f = /** @type {string} */ jspb.Message.getField(message, 5);
|
||||
if (f != null) {
|
||||
writer.writeString(5, f);
|
||||
}
|
||||
f = message.getCreatedAt();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(6, f);
|
||||
}
|
||||
f = message.getUpdatedAt();
|
||||
if (f !== 0) {
|
||||
writer.writeUint64(7, f);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string id = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.getId = function () {
|
||||
return /** @type {string} */ jspb.Message.getFieldWithDefault(this, 1, "");
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.account.Bank} returns this
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.setId = function (value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string name = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.getName = function () {
|
||||
return /** @type {string} */ jspb.Message.getFieldWithDefault(this, 2, "");
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.account.Bank} returns this
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.setName = function (value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional bool show = 3;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.getShow = function () {
|
||||
return /** @type {boolean} */ jspb.Message.getBooleanFieldWithDefault(
|
||||
this,
|
||||
3,
|
||||
false
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.bet.beteran.account.Bank} returns this
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.setShow = function (value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 3, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional bool can_use = 4;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.getCanUse = function () {
|
||||
return /** @type {boolean} */ jspb.Message.getBooleanFieldWithDefault(
|
||||
this,
|
||||
4,
|
||||
false
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.bet.beteran.account.Bank} returns this
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.setCanUse = function (value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 4, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional string memo = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.getMemo = function () {
|
||||
return /** @type {string} */ jspb.Message.getFieldWithDefault(this, 5, "");
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.bet.beteran.account.Bank} returns this
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.setMemo = function (value) {
|
||||
return jspb.Message.setField(this, 5, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.bet.beteran.account.Bank} returns this
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.clearMemo = function () {
|
||||
return jspb.Message.setField(this, 5, undefined);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.hasMemo = function () {
|
||||
return jspb.Message.getField(this, 5) != null;
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 created_at = 6;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.getCreatedAt = function () {
|
||||
return /** @type {number} */ jspb.Message.getFieldWithDefault(this, 6, 0);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.account.Bank} returns this
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.setCreatedAt = function (value) {
|
||||
return jspb.Message.setProto3IntField(this, 6, value);
|
||||
};
|
||||
|
||||
/**
|
||||
* optional uint64 updated_at = 7;
|
||||
* @return {number}
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.getUpdatedAt = function () {
|
||||
return /** @type {number} */ jspb.Message.getFieldWithDefault(this, 7, 0);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {!proto.bet.beteran.account.Bank} returns this
|
||||
*/
|
||||
proto.bet.beteran.account.Bank.prototype.setUpdatedAt = function (value) {
|
||||
return jspb.Message.setProto3IntField(this, 7, value);
|
||||
};
|
||||
|
||||
goog.object.extend(exports, proto.bet.beteran.account);
|
Loading…
Reference in New Issue
Block a user