setting.d.ts 933 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // 应用配置
  2. export interface AppConfig {
  3. whetherToVerifyPermissions: boolean
  4. storagePrefix: string
  5. defaultCacheTime: number
  6. }
  7. // 项目配置
  8. export interface ProjectConfig {
  9. openPageLoading: boolean
  10. }
  11. // 网络配置
  12. export interface HttpConfig {
  13. // code message result
  14. requestCodeName: string
  15. requestMessageName: string
  16. requestResultName: string
  17. }
  18. export interface GlobConfig {
  19. // Site title
  20. title: string
  21. // Service interface url
  22. apiUrl: string
  23. // Upload url
  24. uploadUrl?: string
  25. // Service interface url prefix
  26. urlPrefix?: string
  27. // Project abbreviation
  28. shortName: string
  29. }
  30. export interface GlobEnvConfig {
  31. // Site title
  32. VITE_GLOB_APP_TITLE: string
  33. // Service interface url
  34. VITE_GLOB_API_URL: string
  35. // Service interface url prefix
  36. VITE_GLOB_API_URL_PREFIX?: string
  37. // Project abbreviation
  38. VITE_GLOB_APP_SHORT_NAME: string
  39. // Upload url
  40. VITE_GLOB_UPLOAD_URL?: string
  41. }