bug fixed

This commit is contained in:
병준 박 2022-08-30 10:24:35 +00:00
parent 55315ee131
commit a36b7b87cf
2 changed files with 11 additions and 7 deletions

View File

@ -48,12 +48,8 @@ export class MemberService {
// @ Public methods
// -----------------------------------------------------------------------------------------------------
listMembers(req?: ListMembersRequest): Promise<ListMembersResponse.Result> {
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);

View File

@ -6,7 +6,10 @@ import {
RouterStateSnapshot,
} from '@angular/router';
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 { Observable } from 'rxjs';
@ -38,7 +41,12 @@ export class ListMemberResolver implements Resolve<any> {
| Observable<ListMembersResponse.Result>
| Promise<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);
}
}