userModel.ts 968 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * @description: Login interface parameters
  3. */
  4. export interface LoginParams {
  5. username: string;
  6. password: string;
  7. }
  8. export interface ThirdLoginParams {
  9. token: string;
  10. thirdType: string;
  11. }
  12. export interface RoleInfo {
  13. roleName: string;
  14. value: string;
  15. }
  16. /**
  17. * @description: Login interface return value
  18. */
  19. export interface LoginResultModel {
  20. userId: string | number;
  21. token: string;
  22. role: RoleInfo;
  23. }
  24. /**
  25. * @description: Get user information return value
  26. */
  27. export interface GetUserInfoModel {
  28. roles: RoleInfo[];
  29. // 用户id
  30. userId: string | number;
  31. // 用户名
  32. username: string;
  33. // 真实名字
  34. realname: string;
  35. // 头像
  36. avatar: string;
  37. // 介绍
  38. desc?: string;
  39. // 用户信息
  40. userInfo?: any;
  41. // 缓存字典项
  42. sysAllDictItems?: any;
  43. }
  44. /**
  45. * @description: Get user information return value
  46. */
  47. export interface GetResultModel {
  48. code: number;
  49. message: string;
  50. result: object;
  51. success: Boolean;
  52. }