bug fixed
This commit is contained in:
parent
55315ee131
commit
a36b7b87cf
|
@ -48,12 +48,8 @@ export class MemberService {
|
||||||
// @ Public methods
|
// @ Public methods
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
listMembers(req?: ListMembersRequest): Promise<ListMembersResponse.Result> {
|
listMembers(req: ListMembersRequest): Promise<ListMembersResponse.Result> {
|
||||||
return new Promise<ListMembersResponse.Result>((resolve, reject) => {
|
return new Promise<ListMembersResponse.Result>((resolve, reject) => {
|
||||||
if (!req) {
|
|
||||||
req = new ListMembersRequest();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!req.hasPagination()) {
|
if (!req.hasPagination()) {
|
||||||
let paging = new Pagination();
|
let paging = new Pagination();
|
||||||
paging.setPageSize(10);
|
paging.setPageSize(10);
|
||||||
|
|
|
@ -6,7 +6,10 @@ import {
|
||||||
RouterStateSnapshot,
|
RouterStateSnapshot,
|
||||||
} from '@angular/router';
|
} from '@angular/router';
|
||||||
import { MemberService } from 'app/modules/polyglot/member/services/member.service';
|
import { MemberService } from 'app/modules/polyglot/member/services/member.service';
|
||||||
import { ListMembersResponse } from 'app/modules/proto/c2se/member_pb';
|
import {
|
||||||
|
ListMembersRequest,
|
||||||
|
ListMembersResponse,
|
||||||
|
} from 'app/modules/proto/c2se/member_pb';
|
||||||
import { GetMemberResponse } from 'app/modules/proto/c2se/member_pb';
|
import { GetMemberResponse } from 'app/modules/proto/c2se/member_pb';
|
||||||
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
@ -38,7 +41,12 @@ export class ListMemberResolver implements Resolve<any> {
|
||||||
| Observable<ListMembersResponse.Result>
|
| Observable<ListMembersResponse.Result>
|
||||||
| Promise<ListMembersResponse.Result>
|
| Promise<ListMembersResponse.Result>
|
||||||
| ListMembersResponse.Result {
|
| ListMembersResponse.Result {
|
||||||
return this._memberService.listMembers();
|
let search = new ListMembersRequest.Search();
|
||||||
|
search.setMemberClassId('4598f07a-86d1-42a4-b038-25706683a7cd');
|
||||||
|
let req = new ListMembersRequest();
|
||||||
|
req.setSearch(search);
|
||||||
|
|
||||||
|
return this._memberService.listMembers(req);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user