fix: list all
This commit is contained in:
parent
4ce7b036b7
commit
1a9448fca5
3 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ export class RcSdkRole {
|
|||
}
|
||||
|
||||
public list(): Promise<IRoleListResponse> {
|
||||
return this.sdk.get(`roles.list`);
|
||||
return this.sdk.get(`roles.list?count=0`);
|
||||
}
|
||||
|
||||
public create(body: IRoleCreate): Promise<IRoleResponse> {
|
||||
|
|
|
@ -105,11 +105,11 @@ export class RcSdkTeam {
|
|||
}
|
||||
|
||||
public listAll(): Promise<ITeamListAllResponse> {
|
||||
return this.sdk.get(`teams.listAll`);
|
||||
return this.sdk.get(`teams.listAll?count=0`);
|
||||
}
|
||||
|
||||
public members(teamId: string): Promise<ITeamMembersResponse> {
|
||||
return this.sdk.get(`teams.members?teamId=${teamId}`);
|
||||
return this.sdk.get(`teams.members?teamId=${teamId}&count=0`);
|
||||
}
|
||||
|
||||
public info(teamId: string): Promise<ITeamInfoResponse> {
|
||||
|
|
|
@ -74,7 +74,7 @@ export class RcSdkUser {
|
|||
|
||||
public list(): Promise<IUserListResponse> {
|
||||
return this.sdk.get(
|
||||
`users.list?query={"type":"user"}&fields={"type":1,"createdAt":1}`,
|
||||
`users.list?query={"type":"user"}&fields={"type":1,"createdAt":1}&count=0`,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue