File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 1
- // 登录参数
2
- export interface ILoginApiParams {
3
- username : string // 用户名
4
- password : string // 密码
5
- captcha : string // 验证码
6
- uuid : string // 验证码uuid
7
- }
8
-
1
+ /**
2
+ * 接口返回结果Types
3
+ * --------------------------------------------------------------------------
4
+ */
9
5
// 登录返回结果
10
6
export interface ILoginData {
11
7
token : string
@@ -15,12 +11,26 @@ export interface ILoginData {
15
11
}
16
12
}
17
13
14
+ /**
15
+ * 接口参数Types
16
+ * --------------------------------------------------------------------------
17
+ */
18
+ // 登录参数
19
+ export interface ILoginApiParams {
20
+ username : string // 用户名
21
+ password : string // 密码
22
+ captcha : string // 验证码
23
+ uuid : string // 验证码uuid
24
+ }
18
25
// 注销登录参数
19
26
export interface ILogoutParams { }
20
-
21
27
// 获取用户权限参数
22
28
export interface IPermissionsParams { }
23
29
30
+ /**
31
+ * 接口定义Types
32
+ * --------------------------------------------------------------------------
33
+ */
24
34
export interface IUserApi {
25
35
login : ( params : ILoginApiParams ) => Promise < StoreState . ResType < ILoginData > >
26
36
logout : ( params : ILogoutParams ) => Promise < StoreState . ResType < any > >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ declare namespace StoreState {
9
9
// 接口返回结构
10
10
export interface ResType < T > {
11
11
code : number
12
- data ? : T
12
+ data : T
13
13
msg ?: string
14
14
status : boolean
15
15
}
You can’t perform that action at this time.
0 commit comments