types.ts 760 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /**
  2. * 登录请求参数
  3. */
  4. export interface LoginData {
  5. /**
  6. * 用户名
  7. */
  8. userName: string;
  9. /**
  10. * 密码
  11. */
  12. password: string;
  13. /**
  14. * 验证码缓存key
  15. */
  16. captchaKey?: string;
  17. /**
  18. * 验证码
  19. */
  20. captchaCode?: string;
  21. orgId: number;
  22. }
  23. /**
  24. * 登录响应
  25. */
  26. export interface LoginResult {
  27. /**
  28. * 访问token
  29. */
  30. accessToken?: string;
  31. /**
  32. * 过期时间(单位:毫秒)
  33. */
  34. expires?: number;
  35. /**
  36. * 刷新token
  37. */
  38. refreshToken?: string;
  39. /**
  40. * token 类型
  41. */
  42. tokenType?: string;
  43. }
  44. /**
  45. * 验证码响应
  46. */
  47. export interface CaptchaResult {
  48. /**
  49. * 验证码缓存key
  50. */
  51. captchaKey: string;
  52. /**
  53. * 验证码图片Base64字符串
  54. */
  55. captchaBase64: string;
  56. }