File size: 707 Bytes
db242f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* 账号可能存在的状态
 * bind: 需要绑定账户,通常为 OAuth
 * password: 需要设置密码
 * block: 被禁用
 * ok: 正常 */
export type IAccountStatus = 'bind' | 'password' | 'block' | 'ok';

/* 认证 DTO */
export interface identityDto {
  identity: string;
}

/* 验证验证码 DTO */
export interface validateCodeDto {
  identity: string;
  code: string;
}

/* 忘记密码 DTO */
export interface forgetPasswordDto {
  identity: string;
  code: string;
  newPassword: string;
}

/* 密码登录 DTO */
export interface byPasswordDto {
  identity: string;
  password: string;
}

/* 绑定身份 DTO */
export interface bindIdentityDto {
  identity: string;
  password?: string;
}