export const uploadFile = "/fusion/upload/file";

/**  ----------------角色接口----------------   */
export const getRoleList = "/web/role/getAllRoleList";
export const getListByDeptId = "/fusion/web/role/getAllRoleList";

/** ------------------------------------------ */

/**  ----------------用户接口----------------   */
// 登录
export const userLogin = "/service/manage/login";
// 权限
export const userperInfo = "/fusion/web/user/getPerInfo";
// export const userInfo = "/fusion/web/user/getUserInfo";
export const userInfo = "/service/manage/sysUser/getInfo";
// 注册
export const userReg = "/web/user/register";
// 发送注册短信
export const sendUserMsg = "/fusion/notAuth/getMsgAuthCode";
// 修改密码
export const updatePsw = "/fusion/notAuth/changePassword";
// 新增用户
export const userAdd = "/fusion/web/user/addUser";
//修改用户
export const userEdit = "/fusion/web/user/editUser";
// 删除用户
export const deleUser = "/fusion/web/user/delUser";
// 获取用户信息
export const getUserInfo = "/web/user/getUserInfo";

// 转换四维场景的token
export const getSWToken = "/fusion/scene/getFdTokenByNum";

// 登出
export const userLogout = "/fusion/fdLogout";
// 获取用户列表
export const getUserList = "/fusion/web/user/getUserList"; //修改2.0   getUserList ==》》 getPageList
// 修改用户信息
export const updateUser = "/web/user/changDeptAndRole";
// 获取验证码
export const getCode = "/fusion/notAuth/getLoginAuthCode";
// 修改用户状态
export const changeUserStatus = "/fusion/web/user/changeStatus";
export const updateUserPWD = "";
/** ------------------------------------------ */

// 获取角色列表
export const getPageList = "/web/role/getPageList";
// 新增修改角色信息
export const updateRole = "/web/role/save";
// 删除角色
export const removeRole = "/web/role/remove/";
// 查看角色
export const detailRole = "/web/role/detail/";
// 获取所有权限树
export const getRoleTree = "/web/role/getTree";
// 获取当前所有权限树
export const getTreeByRole = "/web/role/getTreeByRole/";

/** ----------------部门接口---------------- */
// 获取公司列表
export const getCompanyList = "/web/department/getAll";
/** ------------------------------------------ */

/** ----------------VR模型接口---------------- */
// 获取场景列表
export const delScene = "/fusion/scene/deleteNum";
export const checkGenMeshScene = "/fusion/scene/sceneDetail";
export const genMeshSceneByCloud = "/fusion/scene/buildSceneObj";

// 统计
export const sceneStatistics = `/fusion/data/sceneGroupByDept`;
export const caseStatistics = `/fusion/data/projectGroupByDept`;
export const cameraTypeStatistics = `/fusion/data/cameraGroupType`;
export const caseTimeStatistics = `/fusion/data/FireTrend`;
export const casePlaceStatistics = `/fusion/data/FirePlaceTrend`;
export const caseReasonStatistics = `/fusion/data/FireReasonTrend`;

// 获取模型场景列表
export const getModelSceneList = `/fusion/model/list`;
export const updateModelScene = `/fusion/model/updateTitle`;
// 取消模型场景上传
export const cancelUModel = `/fusion/model/cancelUpload`;
export const deleteModel = `/fusion/model/delete`;
export const uploadModel = `/fusion/model/uploadObj`;
export const getModelRunProgress = `/fusion/model/uploadObjProgress`;

// 通过场景标题模糊搜索场景
export const getSceneByTitle = "/web/scene/getLocalScenes";
// 通过相机获取场景列表
export const getSceneListByCamera = "/web/scene/getSceneList";
// 同步场景
export const asyncScene = "/web/scene/synchronizeScene";
// 删除场景
export const deleteScene = "/web/scene/delete";
/** ------------------------------------------ */

// ---------example案件接口--------
export const exampleList = "/fusion/case/list";
export const setExample = "/fusion/case/addOrUpdate";
export const deleteExample = "/fusion/case/delete";
export const isdyrh = "/fusion/caseFusion/list";

/**  case接口 */
// 获取case场景列表
export const caseSceneList = `/fusion/case/sceneList`;
export const caseNewList = `/fusion/case/getFusionAndScene`;
export const caseFusionList = `/service/manage/caseFusion/list`;
export const caseFusionDel = "/service/manage/caseFusion/del";
export const repCaseScenes = `/fusion/case/addScene`;
export const syncInfo = `/fusion/caseLive/getTakeLookRoom`;
export const sceneListHasAi = '/service/manage/case/sceneListHasAi'
// 获取caseTaggings
export const caseTaggingList = `/fusion/caseTag/allList`;

/** ----------------相机接口----------------  getUserCameraList  ==>> getPageList /web/camera/getListByUser */
// 获取相机列表
export const getCameraList = "/fusion/web/camera/getUserCameraList";
export const getListByUser = "/web/camera/getListByUser";
// 获取相机选项
export const getCameraOptions =
  "/web/camera/getPageList?pageNum=1&pageSize=100000&type=1";
// 获取相机选项(自己)
export const getCameraListByUser =
  "/web/camera/getCameraListByUser?pageNum=1&pageSize=100000";
// 添加相机
export const insertCamera = "/fusion/web/camera/bindNew";
// 添加相机管理人员
export const getUserListSelect = "/fusion/web/user/getUserListSelect";
// 修改相机
export const updateCamera = "/fusion/web/camera/edit";
// 删除相机
export const deleteCamera = "/api/scene/camera/delete";
// 相机绑定设备
export const bindCamera = "/fusion/web/camera/bindNew";
// 相机解除绑定设备
export const unbindCamera = "/fusion/web/camera/unbind";
/** ------------------------------------------ */

/** ----------------组织架构---------------- */

export const getTreeselect = "/fusion/web/department/treeselect";
export const delTreeitem = "/fusion/web/department/del/";
export const editTreeitem = "/fusion/web/department/edit";
export const addTreeitem = "/fusion/web/department/add";
export const checkUserCamera = "/web/department/checkUserCamera/";
/** ----------------火调项目---------------- */
// 获取火调列表
export const getFireList = "/fusion/web/fireProject/queryProject";
// 新增火调
export const insertFire = "/fusion/web/fireProject/addNewProject";
// 火调设置为教学
export const deleteAttach = "/fusion/web/fireProject/setTeach";
// 取消教学
export const setUnTeach = "/fusion/web/fireProject/setUnTeach";

// 修改火调
export const updateFire = "/fusion/web/fireProject/updateProject";
// 火调设置为教学
export const setTeach = "/fusion/web/fireProject/setTeach";
// 火调链接地址设置密码
export const fireSetPsw = "/fusion/web/fireProject/updateRandomCode";
export const getFirePsw = "/fusion/web/fireProject/getRandCode";

// 获取火调详情
export const fireDetail = "/fusion/web/fireProject/getDetailWithoutAuth";
// 获取火调详情
// export const fireDetailByPsw = '/web/fireProject/getDetailWithoutAuth'

// 获取火调详情
export const fireDetailByPsw = "/fusion/web/fireProject/getDetailWithoutAuth"; //wxAnonGetDetail
/** ------------------------------------------ */

// case相关
export const caseInfo = "/fusion/case/getInfo";
export const caseInquestInfo = "/fusion/caseInquestInfo/info";
export const caseFileTypes = "/fusion/caseFilesType/allList";
export const caseFiles = "/fusion/caseFiles/allList";
export const caseFileInfo = "/fusion/caseFiles/info";
export const userFileInfo = "/service/manage/userFile/info";

export const saveCaseFileInfo = "/fusion/caseFiles/addOrUpdateImg";
export const insertCaseFile = "/fusion/caseFiles/add";
export const deleteCaseFile = "/fusion/caseFiles/delete";
export const updateCaseFile = "/fusion/caseFiles/updateTitle";
export const newFileupload = "/service/manage/common/upload/fileNew";
export const newupload = "/service/manage/common/upload/files";
export const uploadSceneCheck = '/service/manage/scene/uploadSceneCheck'
export const uploadSceneOrig = '/service/manage/scene/uploadScene'

//勘验笔录信息
export const caseInquestInfoOld = "/fusion/caseInquestCriminal/info";
export const caseInquestOpt = "/fusion/caseInquestCriminal/saveOrUpdate";
export const caseInquestExport = "/fusion/caseInquestCriminal/downDocx";
// 火调链接地址设置密码
export const setCasePsw = "/fusion/web/fireProject/updateRandomCode";
export const getCasePsw = "/fusion/web/fireProject/getRandCode";

/** ----------------留言管理---------------- */
// 获取留言列表
export const getMessageList = "/fusion/web/message/getList";
// 新增火调
export const insertMessage = "/fusion/web/message/addNew";

/** ----------------火调附件---------------- */
// 获取火调列表
export const getAttachList = "/web/attachment/getListByProject";
// export const getAttachListByPsw = '/web/attachment/getListByAnon'

export const getAttachListByPsw = "/web/attachment/getListByAnon"; // wxAnonGetList
// 新增火调
export const insertAttach = "/web/attachment/addNew";

// 删除附件
export const deleteAttachFile = "/web/attachment/deleteById";
// 火调上传word,pdf文件
export const uploadAttachFile = "/web/fireProject/uploadFile";
// 火调上传jpg,png文件
export const uploadAttachImage = "/web/fireProject/uploadImage";
/** ------------------------------------------ */
//标注
export const getCaseImgTag = "/fusion/caseImgTag/info";
export const saveCaseImgTag = "/fusion/caseImgTag/saveOrUpdate";

//相片合成
export const ffmpegMergeImage = `/fusion/caseImg/ffmpegImage`;

// 下载校验
export const checkHasDownload = "/fusion/sceneDownLog/checkDownLoad";
// 下载获取进度条
export const getDownloadProcess = "/fusion/sceneDownLog/downloadProcess";
// 下载
export const downloadScene = "/fusion/sceneDownLog/downScene";
export const downloadSceneList = "/fusion/sceneDownLog/list";
// 带看相关接口
export const offLine = "/web/fireProject/offLine"; //{roomId}
export const onLine = "/web/fireProject/onLine"; //{roomId}
export const onLineCheck = "/web/fireProject/onLineCheck";
// 照片制卷
export const caseApiList = "/fusion/caseImg/list";
export const saveApiOrUpdate = "/fusion/caseImg/saveOrUpdate";
export const uploadImagesAndSave = "/fusion/caseImg/addBatch";
export const caseApiDel = "/fusion/caseImg/delete";
export const caseApiUpdateSort = "/fusion/caseImg/updateSort";
export const getByCaseId = "/fusion/caseTabulation/getByCaseId";
export const getSysSetting = `/fusion/systemSetting/info`;
export const updateSysSetting = `/fusion/systemSetting/save`;
//现场图
export const caseTabulationList = `/service/manage/caseTabulation/list`;
export const caseOverviewList = `/service/manage/caseOverview/list`;
export const caseOverviewAdd = "/fusion/caseOverview/addOrUpdate";
export const caseTabulationAdd = "/fusion/caseTabulation/addOrUpdate";
export const caseOverviewExport = `/fusion/caseOverview/export`;

// 案件相关接口
export const sceneList = "/service/manage/case/sceneList"; //{roomId}
export const getCaseByNum = "/service/manage/case/getCaseByNum"; //{roomId}
export const newCaseInfo = "/fusion/caseInquestInfo/info";
export const casesaveOrUpdate = "/fusion/caseInquestInfo/saveOrUpdate";
export const getByTree = "/fusion/caseFilesType/getByTree";
export const updateFileType = "/fusion/caseFiles/updateFileType";
export const addByMediaLibrary = "/fusion/caseFiles/addByMediaLibrary";
export const addByMediaLibrarys = "/fusion/caseFiles/addByMediaLibrarys";
export const addUserOrUpdate = "/service/manage/userFile/addOrUpdate";
export const addmodelByMediaLibrary = "/fusion/model/addByMediaLibrary";
export const criminalInfo = "/fusion/caseInquestCriminal/info";
export const getMapConfig = "/fusion/notAuth/getMapConfig";
export const saveOrUpdate = "/fusion/caseInquestCriminal/saveOrUpdate";
export const downDocx = "/fusion/caseInquestCriminal/downDocx";
// export const getSceneList = "/service/manage/scene/list";
export const getSceneList = "/service/manage/scene/list";
export const getDictFileList = "/service/manage/dict/getByKey/media-library";
export const delDictFileList = "/service/manage/dictFile/del/media-library";
export const getListFileList = "/service/manage/dictFile/pageList/media-library";
export const caseaddOrUpdate = '/service/manage/case/addOrUpdate';
export const addFusionIds = '/fusion/case/addFusionIds';
export const getByImage = '/fusion/ai/getByImage';
export const getFloor = "/fusion/ai/getFloor/";

// 照片制卷
export const casePhotoRollList = "/fusion/casePhotoRoll/getByCaseId";
export const getAllPhoto = "/fusion/casePhotoRoll/getAllPhoto";
export const casePhotoRollUpdate = "/fusion/casePhotoRoll/addOrUpdate";
export const casePhotoRolldel = "/fusion/casePhotoRoll/del";

const VITE_VIBE = import.meta.env.VITE_VIBE;
let getTipss = "/s/api/gettips";
let getTipsNames = "/s/api/gettips_name";

if(VITE_VIBE == 'jiangmeng'){
  getTipss = "http://map.jms.gd//s/api/gettips";
  getTipsNames = "http://map.jms.gd/s/api/gettips_name";
}
export const getTips = getTipss;
export const getTipsName = getTipsNames;


