common.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. declare namespace COMMON {
  2. namespace API {
  3. interface QueryParams {
  4. page: number,
  5. pageSize: number
  6. start?: number
  7. end?: number,
  8. status?: boolean
  9. }
  10. interface Transport {
  11. name: TransportEnum,
  12. value: string
  13. }
  14. }
  15. namespace COMPONENTS {
  16. type ComType = 'input' | 'select' | 'datepick' | 'textarea'
  17. }
  18. namespace SYS {
  19. interface Conf {
  20. 'id': string,
  21. 'createAt': number,
  22. 'updateAt': null,
  23. 'deleted': false,
  24. 'sysLabel': string, // 系统名称
  25. 'sysIcon': string, // 系统图片,上传时候限制大小为3M 并且base64 编码
  26. 'sysTheme': string, // 系统主题
  27. 'tenantId': 'nil',
  28. 'mailConf': {
  29. 'host': string, // 邮件地址
  30. 'port': number, // 邮件端口
  31. 'protocol': string, // 邮件协议
  32. 'username': string, // 邮件账号
  33. 'password': string // 邮件密码
  34. }
  35. }
  36. }
  37. namespace LOGIN {
  38. interface Login {
  39. accout: string,
  40. password: string
  41. }
  42. }
  43. }