types.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /**
  2. * 注册
  3. */
  4. export type RegisterForm = {
  5. tenantId: string;
  6. username: string;
  7. password: string;
  8. confirmPassword?: string;
  9. code?: string;
  10. uuid?: string;
  11. userType?: string;
  12. };
  13. /**
  14. * 登录请求
  15. */
  16. export interface LoginData {
  17. tenantId?: string;
  18. username?: string;
  19. password?: string;
  20. rememberMe?: boolean;
  21. socialCode?: string;
  22. socialState?: string;
  23. source?: string;
  24. code?: string;
  25. uuid?: string;
  26. clientId: string;
  27. grantType: string;
  28. }
  29. /**
  30. * 登录响应
  31. */
  32. export interface LoginResult {
  33. access_token: string;
  34. }
  35. /**
  36. * 验证码返回
  37. */
  38. export interface VerifyCodeResult {
  39. captchaEnabled: boolean;
  40. uuid?: string;
  41. img?: string;
  42. }
  43. /**
  44. * 租户
  45. */
  46. export interface TenantVO {
  47. companyName: string;
  48. domain: any;
  49. tenantId: string;
  50. }
  51. export interface TenantInfo {
  52. tenantEnabled: boolean;
  53. voList: TenantVO[];
  54. }
  55. /**
  56. * 通用响应结构
  57. */
  58. export interface R<T = any> {
  59. code: number;
  60. msg: string;
  61. data: T;
  62. }
  63. /**
  64. * 分页数据信息
  65. */
  66. export interface TableDataInfo<T = any> {
  67. total: number;
  68. rows: T;
  69. }