login.typings.ts 844 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * 用户信息
  3. */
  4. export interface IUserInfoVo {
  5. id: number
  6. username: string
  7. avatar: string
  8. token: string
  9. }
  10. /**
  11. * 登录返回的信息
  12. */
  13. export interface IUserLogin {
  14. id: string
  15. username: string
  16. token: string
  17. }
  18. /**
  19. * 获取验证码
  20. */
  21. export interface ICaptcha {
  22. captchaEnabled: boolean
  23. uuid: string
  24. image: string
  25. }
  26. /**
  27. * 上传成功的信息
  28. */
  29. export interface IUploadSuccessInfo {
  30. fileId: number
  31. originalName: string
  32. fileName: string
  33. storagePath: string
  34. fileHash: string
  35. fileType: string
  36. fileBusinessType: string
  37. fileSize: number
  38. }
  39. /**
  40. * 更新用户信息
  41. */
  42. export interface IUpdateInfo {
  43. id: number
  44. name: string
  45. sex: string
  46. }
  47. /**
  48. * 更新用户信息
  49. */
  50. export interface IUpdatePassword {
  51. id: number
  52. oldPassword: string
  53. newPassword: string
  54. confirmPassword: string
  55. }