config.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. insertCaseFile,
  14. saveCaseFileInfo,
  15. sendUserMsg,
  16. updateCaseFile,
  17. updatePsw,
  18. uploadAttachFile,
  19. uploadAttachImage,
  20. uploadFile,
  21. uploadModel,
  22. userLogin,
  23. userReg,
  24. newFileupload,
  25. } from "./urls";
  26. // 不需要登录就能请求的接口
  27. export const notLoginUrls = [
  28. userLogin,
  29. getCode,
  30. sendUserMsg,
  31. userReg,
  32. updatePsw,
  33. getCompanyList,
  34. fireDetailByPsw,
  35. getAttachListByPsw,
  36. ];
  37. // 需要用表单提交的数据
  38. export const fromUrls: string[] = [];
  39. // 带文件的请求
  40. export const fileUrls = [
  41. uploadAttachFile,
  42. uploadAttachImage,
  43. uploadModel,
  44. updateCaseFile,
  45. uploadFile,
  46. insertCaseFile,
  47. saveCaseFileInfo,
  48. newFileupload,
  49. ];
  50. // 需要限定卫GET请求方式的url
  51. export const GetUrls = [getRoleList, getCompanyList];
  52. // 需要限定请求方式的url
  53. export const PostUrls = [
  54. exampleList,
  55. getFireList,
  56. getMessageList,
  57. getSceneList,
  58. getModelSceneList,
  59. ];
  60. // 未认证code
  61. export const unAuthCode = [3004, 4008];
  62. export const successCode = [0, "000000", 200];
  63. // baseURL
  64. export const baseURL = import.meta.env.DEV ? "/api" : "";
  65. export const notOpenUrls: string[] = [uploadModel, getDownloadProcess];