user.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. * TS: 用于封装定义用户登录与相关的类型声明
  3. */
  4. // 登录参数类型
  5. export interface LoginParams {
  6. userName: string;
  7. password?: string;
  8. code?: string;
  9. uuid?: string;
  10. idValueC?: string;
  11. idKeyC?: string;
  12. saltValue?: string;
  13. }
  14. // 用户信息类型
  15. export interface UserInfo {
  16. id?: string | number;
  17. userId?: string | number;
  18. userName?: string;
  19. nickname?: string;
  20. nickName?: string;
  21. avatar?: string;
  22. roles?: string[] | null;
  23. roleNames?: string[] | null;
  24. permissions?: string[];
  25. applyPgId?: number;
  26. applyPgName?: string;
  27. certificateFileName?: string;
  28. certificateFileUrl?: string;
  29. createdTime?: string;
  30. creditScore?: number;
  31. deptId?: number;
  32. deptName?: string;
  33. email?: string;
  34. esignImg?: string;
  35. ethicsFileName?: string;
  36. ethicsFileUrl?: string;
  37. faceCount?: string | number;
  38. fundingFileName?: string;
  39. fundingFileUrl?: string;
  40. icCardCount?: string | number;
  41. idCode?: string;
  42. idType?: string;
  43. loginDate?: string | null;
  44. loginIp?: string;
  45. personnelType?: string;
  46. pgId?: number;
  47. pgName?: string;
  48. phone?: string;
  49. postName?: string;
  50. projectFileName?: string;
  51. projectFileUrl?: string;
  52. proposalFileName?: string;
  53. proposalFileUrl?: string;
  54. sex?: string;
  55. signature?: string;
  56. status?: string;
  57. userMac?: string;
  58. userType?: string;
  59. wechatOpenId?: string;
  60. }
  61. // 登录接口返回的 Token 结构
  62. export interface LoginResult {
  63. token: string;
  64. expiresIn?: number;
  65. }