types.ts 804 B

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