config.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import {
  2. exampleList,
  3. fireDetailByPsw,
  4. getAttachListByPsw,
  5. getCode,
  6. getCompanyList,
  7. getDownloadProcess,
  8. getFireList,
  9. getMessageList,
  10. getModelSceneList,
  11. getRoleList,
  12. getSceneList,
  13. getSysSetting,
  14. getTreeselect,
  15. insertCaseFile,
  16. saveCaseFileInfo,
  17. sendUserMsg,
  18. updateCaseFile,
  19. updatePsw,
  20. uploadAttachFile,
  21. uploadAttachImage,
  22. uploadFile,
  23. uploadModel,
  24. userLogin,
  25. userReg,
  26. getCaseScriptInfoUrl,
  27. getCaseScriptSaveOrUpdateUrl,
  28. cameraVersionUpload,
  29. cameraVersionAppUpload,
  30. } from "./urls";
  31. // 不需要登录就能请求的接口
  32. export const notLoginUrls = [
  33. userLogin,
  34. getCode,
  35. sendUserMsg,
  36. getSysSetting,
  37. getTreeselect,
  38. userReg,
  39. updatePsw,
  40. getCompanyList,
  41. fireDetailByPsw,
  42. getAttachListByPsw,
  43. ];
  44. // 需要用表单提交的数据
  45. export const fromUrls: string[] = [];
  46. // 带文件的请求
  47. export const fileUrls = [
  48. uploadAttachFile,
  49. uploadAttachImage,
  50. uploadModel,
  51. updateCaseFile,
  52. uploadFile,
  53. insertCaseFile,
  54. saveCaseFileInfo,
  55. cameraVersionUpload,
  56. cameraVersionAppUpload,
  57. ];
  58. // 需要限定卫GET请求方式的url
  59. export const GetUrls = [getRoleList, getCompanyList];
  60. // 需要限定请求方式的url
  61. export const PostUrls = [
  62. exampleList,
  63. getFireList,
  64. getMessageList,
  65. getSceneList,
  66. getModelSceneList,
  67. ];
  68. // 未认证code
  69. export const unAuthCode = [3004, 4008];
  70. export const successCode = [0, "000000", 200];
  71. // baseURL
  72. export const baseURL = import.meta.env.DEV ? "/api" : "";
  73. export const notOpenUrls: string[] = [uploadModel, getDownloadProcess];