user.uts 620 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * 用户模块类型定义
  3. */
  4. // 角色信息
  5. export type RoleInfo = {
  6. code: string
  7. name: string
  8. id: string
  9. }
  10. // 登录响应数据
  11. export type LoginResponse = {
  12. realName: string
  13. deptSid: string
  14. role: RoleInfo[]
  15. deptId: string
  16. accessToken: string
  17. username: string
  18. }
  19. // 通用响应格式
  20. export type ApiResponse<T> = {
  21. status: number
  22. msg: string | null
  23. total: number
  24. pages: number
  25. success: boolean
  26. data: T
  27. }
  28. // 用户信息
  29. export type UserInfo = {
  30. userName: string
  31. nickName: string
  32. userId: Int32Array
  33. phone: string
  34. deptName : string
  35. }