wsj
4 days ago fe1692fd7f4f307fea8054da6c6c50d5df2bf2d8
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
export type UserRole = 'admin' | 'user';
 
export interface UserInfo {
  id: number;
  username: string;
  nickname: string;
  role: UserRole;
  tenant: string;
  phone: string;
}
 
export interface LoginParams {
  tenant: string;
  phone: string;
  password: string;
}
 
/** `/auth/tenant-login` 返回的业务数据。 */
export interface TenantLoginData {
  token: string;
  employeeId?: number;
  employeeName?: string;
  phone?: string;
  tenantId?: string;
  tenantCode?: string;
  tenantName?: string;
  loginType?: string;
}
 
export interface LoginResult {
  token: string;
  user: UserInfo;
}