12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import {
- exampleList,
- fireDetailByPsw,
- getAttachListByPsw,
- getCode,
- getCompanyList,
- getDownloadProcess,
- getFireList,
- getMessageList,
- getModelSceneList,
- getRoleList,
- getSceneList,
- getSysSetting,
- getTreeselect,
- insertCaseFile,
- saveCaseFileInfo,
- sendUserMsg,
- updateCaseFile,
- updatePsw,
- uploadAttachFile,
- uploadAttachImage,
- uploadFile,
- uploadModel,
- userLogin,
- userReg,
- getCaseScriptInfoUrl,
- getCaseScriptSaveOrUpdateUrl,
- cameraVersionUpload,
- cameraVersionAppUpload,
- } from "./urls";
- // 不需要登录就能请求的接口
- export const notLoginUrls = [
- userLogin,
- getCode,
- sendUserMsg,
- getSysSetting,
- getTreeselect,
- userReg,
- updatePsw,
- getCompanyList,
- fireDetailByPsw,
- getAttachListByPsw,
- ];
- // 需要用表单提交的数据
- export const fromUrls: string[] = [];
- // 带文件的请求
- export const fileUrls = [
- uploadAttachFile,
- uploadAttachImage,
- uploadModel,
- updateCaseFile,
- uploadFile,
- insertCaseFile,
- saveCaseFileInfo,
- cameraVersionUpload,
- cameraVersionAppUpload,
- ];
- // 需要限定卫GET请求方式的url
- export const GetUrls = [getRoleList, getCompanyList];
- // 需要限定请求方式的url
- export const PostUrls = [
- exampleList,
- getFireList,
- getMessageList,
- getSceneList,
- getModelSceneList,
- ];
- // 未认证code
- export const unAuthCode = [3004, 4008];
- export const successCode = [0, "000000", 200];
- // baseURL
- export const baseURL = import.meta.env.DEV ? "/api" : "";
- export const notOpenUrls: string[] = [uploadModel, getDownloadProcess];
|