types.ts 750 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. export type UserLoginVO = {
  2. username: string
  3. password: string
  4. captchaVerification: string
  5. socialType?: string
  6. socialCode?: string
  7. socialState?: string
  8. }
  9. export type TokenType = {
  10. id: number // 编号
  11. accessToken: string // 访问令牌
  12. refreshToken: string // 刷新令牌
  13. userId: number // 用户编号
  14. userType: number //用户类型
  15. clientId: string //客户端编号
  16. expiresTime: number //过期时间
  17. }
  18. export type UserVO = {
  19. id: number
  20. username: string
  21. nickname: string
  22. deptId: number
  23. email: string
  24. mobile: string
  25. sex: number
  26. avatar: string
  27. loginIp: string
  28. loginDate: string
  29. }
  30. export type RegisterVO = {
  31. tenantName: string
  32. username: string
  33. password: string
  34. captchaVerification: string
  35. }