user.ts
837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { ApiClient } from '../core/client';
export interface UserPageParams {
current?: number;
size?: number;
keyword?: string;
mobile?: string;
orgId?: number;
roleId?: number;
status?: number;
}
export interface UserPageItem {
userId: number;
account: string;
name: string;
mobile: string;
email?: string;
orgId?: number;
orgPath?: string;
dataScope?: number;
dataScopeLabel?: string;
status: number;
lastLoginAt?: string;
roleNames?: string[];
roleCodes?: string[];
remark?: string;
}
export interface UserPageResult {
records: UserPageItem[];
total: number;
current: number;
size: number;
pages: number;
}
class User extends ApiClient {
page(params: UserPageParams) {
return this.post<UserPageResult>('/system/user/page', params);
}
}
export const user = new User();