types.ts 896 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. fromSystem?: string;
  29. }
  30. /**
  31. * 登录响应
  32. */
  33. export interface LoginResult {
  34. access_token: string;
  35. }
  36. /**
  37. * 验证码返回
  38. */
  39. export interface VerifyCodeResult {
  40. captchaEnabled: boolean;
  41. uuid?: string;
  42. img?: string;
  43. }
  44. /**
  45. * 租户
  46. */
  47. export interface TenantVO {
  48. companyName: string;
  49. domain: any;
  50. tenantId: string;
  51. }
  52. export interface TenantInfo {
  53. tenantEnabled: boolean;
  54. voList: TenantVO[];
  55. }