constant.ts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. import {namespace} from '@/env'
  2. export enum ResCode {
  3. TOKEN_INVALID = 4008,
  4. SUCCESS = 0
  5. }
  6. export const ResCodeDesc: { [key in ResCode]: string } = {
  7. [ResCode.TOKEN_INVALID]: 'token已失效',
  8. [ResCode.SUCCESS]: '请求成功'
  9. }
  10. export const UPLOAD_HEADS = {
  11. 'Content-Type': 'multipart/form-data'
  12. }
  13. export const USER_INFO = `${namespace}/web/user/getUserInfo`;
  14. export const CASE_INFO = `${namespace}/case/getInfo`
  15. export const CASE_FIRE_INFO = `${namespace}/caseInquestInfo/info`
  16. // 校验密码
  17. export const AUTH_PWD = `${namespace}/web/fireProject/getDetailWithoutAuth`
  18. // 融合模型列表
  19. export const FUSE_MODEL_LIST = `${namespace}/caseFusion/list`
  20. export const FUSE_INSERT_MODEL = `${namespace}/caseFusion/add`
  21. export const FUSE_UPDATE_MODEL = `${namespace}/caseFusion/update`
  22. export const FUSE_DELETE_MODEL = `${namespace}/caseFusion/delete`
  23. // 场景列表
  24. export const SCENE_LIST_ALL = `${namespace}/api/scene/list`
  25. export const MODEL_LIST = `${namespace}/case/sceneList`
  26. export const MODEL_SIGN = `${namespace}/model/getInfo`
  27. export const SYNC_INFO = `${namespace}/caseLive/getTakeLookRoom`;
  28. // 标签列表
  29. export const TAGGING_LIST = `${namespace}/caseTag/allList`
  30. export const INSERT_TAGGING = `${namespace}/caseTag/add`
  31. export const UPDATE_TAGGING = `${namespace}/caseTag/update`
  32. export const DELETE_TAGGING = `${namespace}/caseTag/delete`
  33. // 路线列表
  34. export const PATH_LIST = `${namespace}/casePath/info`
  35. export const INSERT_PATH = `${namespace}/casePath/saveOrUpdate`
  36. export const UPDATE_PATH = `${namespace}/casePath/saveOrUpdate`
  37. export const DELETE_PATH = `${namespace}/casePath/del`
  38. // 标签放置列表
  39. export const TAGGING_POINT_LIST = `${namespace}/caseTagPoint/allList`
  40. export const INSERT_TAGGING_POINT = `${namespace}/caseTagPoint/place`
  41. export const UPDATE_TAGGING_POINT = `${namespace}/caseTagPoint/update`
  42. export const DELETE_TAGGING_POINT = `${namespace}/caseTagPoint/delete`
  43. // 标签样式类型列表
  44. export const TAGGING_STYLE_LIST = `${namespace}/edit/hotIcon/list`
  45. export const INSERT_TAGGING_STYLE = `${namespace}/edit/hotIcon/add`
  46. export const DELETE_TAGGING_STYLE = `${namespace}/edit/hotIcon/delete`
  47. // 测量线
  48. export const MESASURE_LIST = `${namespace}/fusionMeter/allList`
  49. export const INSERT_MESASURE = `${namespace}/fusionMeter/add`
  50. export const UPDATE_MESASURE = `${namespace}/fusionMeter/updateMeter`
  51. export const DELETE_MESASURE = `${namespace}/fusionMeter/delete`
  52. // 导览
  53. export const GUIDE_LIST = `${namespace}/fusionGuide/allList`
  54. export const INSERT_GUIDE = `${namespace}/fusionGuide/add`
  55. export const UPDATE_GUIDE = `${namespace}/fusionGuide/update`
  56. export const DELETE_GUIDE = `${namespace}/fusionGuide/delete`
  57. // 导览路线
  58. export const GUIDE_PATH_LIST = `${namespace}/fusionGuidePath/allList`
  59. export const INSERT_GUIDE_PATH = `${namespace}/fusionGuidePath/add`
  60. export const UPDATE_GUIDE_PATH = `${namespace}/fusionGuidePath/update`
  61. export const DELETE_GUIDE_PATH = `${namespace}/fusionGuidePath/delete`
  62. // 屏幕录制
  63. export const RECORD_LIST = `${namespace}/caseVideoFolder/allList`
  64. export const RECORD_STATUS = `${namespace}/caseVideo/uploadAddVideoProgress`
  65. export const INSERT_RECORD = `${namespace}/caseVideo/uploadAddVideo`
  66. export const MERGE_RECORD = `${namespace}/caseVideo/uploadAddVideo`
  67. export const UPDATE_RECORD = `${namespace}/caseVideoFolder/updateNameOrSort`
  68. export const DELETE_RECORD = `${namespace}/caseVideoFolder/delete`
  69. // 录制片段
  70. export const RECORD_FRAGMENT_LIST = `${namespace}/caseVideo/allList`
  71. export const DELETE_RECORD_FRAGMENT = `${namespace}/caseVideo/delete`
  72. // 视图提取
  73. export const VIEW_LIST = `${namespace}/caseView/allList`
  74. export const INSERT_VIEW = `${namespace}/caseView/add`
  75. export const UPDATE_VIEW = `${namespace}/caseView/updateNameOrSort`
  76. export const DELETE_VIEW = `${namespace}/caseView/delete`
  77. export const GET_SETTING = `${namespace}/caseSettings/info`
  78. export const UPDATE_SETTING = `${namespace}/caseSettings/saveOrUpdate`
  79. // 卷宗类型
  80. export const FOLDER_TYPE_LIST = `${namespace}/caseFilesType/allList`
  81. // 卷宗
  82. // export const FLODER_LIST = `${namespace}/caseFiles/allList`
  83. export const FLODER_LIST = `${namespace}/caseFiles/allList`
  84. // 文件上传
  85. export const UPLOAD_FILE = `${namespace}/upload/file`
  86. // 素材库分页
  87. export const MATERIAL_PAG = `/service/manage/dictFile/pageList/media-library`
  88. export const ADD_MATERIAL = `/service/manage/common/upload/fileNew`
  89. export const DEL_MATERIAL = `/service/manage/dictFile/del/media-library`
  90. export const MATERIAL_GROUP_LIST = `/service/manage/dict/getByKey/media-library`