四零语境后端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
849 B

4 days ago
  1. // 全局要用的类型放到这里
  2. declare global {
  3. type IResData<T> = {
  4. code: number
  5. success: boolean
  6. message: string
  7. result: T
  8. data: T
  9. }
  10. // uni.uploadFile文件上传参数
  11. type IUniUploadFileOptions = {
  12. file?: File
  13. files?: UniApp.UploadFileOptionFiles[]
  14. filePath?: string
  15. name?: string
  16. formData?: any
  17. }
  18. type IUserInfo = {
  19. token?: string
  20. userid?: string
  21. username?: string
  22. realname?: string
  23. welcome?: string
  24. avatar?: string
  25. tenantId?: string | number
  26. loginTenantId?: string | number
  27. sex?: number
  28. phone?: string
  29. email?: string
  30. birthday?: string
  31. orgCode?: string
  32. /** 微信的 openid,非微信没有这个字段 */
  33. openid?: string
  34. // 存到本地的时间戳
  35. localStorageTime: number
  36. }
  37. }
  38. export {} // 防止模块污染