Blame view

src/api/sys/model/userModel.ts 692 Bytes
陈文彬 authored
1
2
3
4
/**
 * @description: Login interface parameters
 */
export interface LoginParams {
sanmu authored
5
  userName: string;
陈文彬 authored
6
  password: string;
sanmu authored
7
8
  imgCaptchaCode: string;
  imgCaptchaUuid: string;
陈文彬 authored
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
}

export interface RoleInfo {
  roleName: string;
  value: string;
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
  userId: string | number;
  token: string;
  role: RoleInfo;
}

/**
 * @description: Get user information return value
 */
28
export interface GetUserInfoModel {
29
  roles: RoleInfo[];
陈文彬 authored
30
31
32
33
34
35
  // 用户id
  userId: string | number;
  // 用户名
  username: string;
  // 真实名字
  realName: string;
36
37
  // 头像
  avatar: string;
陈文彬 authored
38
39
40
  // 介绍
  desc?: string;
}