config.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. getCaseHasDownloadProcess,
  31. ffmpegMergeImage
  32. } from "./urls";
  33. // 不需要登录就能请求的接口
  34. export const notLoginUrls = [
  35. userLogin,
  36. getCode,
  37. sendUserMsg,
  38. getSysSetting,
  39. getTreeselect,
  40. userReg,
  41. updatePsw,
  42. getCompanyList,
  43. fireDetailByPsw,
  44. getAttachListByPsw,
  45. ];
  46. // 需要用表单提交的数据
  47. export const fromUrls: string[] = [
  48. // ffmpegMergeImage
  49. ];
  50. // 带文件的请求
  51. export const fileUrls = [
  52. uploadAttachFile,
  53. uploadAttachImage,
  54. uploadModel,
  55. updateCaseFile,
  56. uploadFile,
  57. insertCaseFile,
  58. saveCaseFileInfo,
  59. cameraVersionUpload,
  60. cameraVersionAppUpload,
  61. ffmpegMergeImage
  62. ];
  63. // 需要限定卫GET请求方式的url
  64. export const GetUrls = [getRoleList, getCompanyList];
  65. // 需要限定请求方式的url
  66. export const PostUrls = [
  67. exampleList,
  68. getFireList,
  69. getMessageList,
  70. getSceneList,
  71. getModelSceneList,
  72. ];
  73. // 未认证code
  74. export const unAuthCode = [3004, 4008];
  75. export const successCode = [0, "000000", 200];
  76. // baseURL
  77. export const baseURL = import.meta.env.DEV ? "/api" : "";
  78. export const notOpenUrls: string[] = [
  79. uploadModel,
  80. getDownloadProcess,
  81. getCaseHasDownloadProcess,
  82. ];