File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Expand file tree Collapse file tree 1 file changed +20
-8
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,28 @@ 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
+ }
25
+
18
26
// 注销登录参数
19
27
export interface ILogoutParams { }
20
28
21
29
// 获取用户权限参数
22
30
export interface IPermissionsParams { }
23
31
32
+ /**
33
+ * 接口定义Types
34
+ * --------------------------------------------------------------------------
35
+ */
24
36
export interface IUserApi {
25
37
login : ( params : ILoginApiParams ) => Promise < StoreState . ResType < ILoginData > >
26
38
logout : ( params : ILogoutParams ) => Promise < StoreState . ResType < any > >
You can’t perform that action at this time.
0 commit comments