import {
  exampleList,
  addUserOrUpdate,
  userFileInfo,
  ffmpegMergeImage,
  fireDetailByPsw,
  getAttachListByPsw,
  getCode,
  getCompanyList,
  getDownloadProcess,
  getFireList,
  getMessageList,
  getModelSceneList,
  getRoleList,
  getSceneList,
  insertCaseFile,
  saveCaseFileInfo,
  sendUserMsg,
  updateCaseFile,
  updatePsw,
  uploadAttachFile,
  uploadAttachImage,
  uploadFile,
  newupload,
  uploadModel,
  userLogin,
  userReg,
  newFileupload,
  getByTree,
} from "./urls";

// 不需要登录就能请求的接口
export const notLoginUrls = [
  userLogin,
  getCode,
  sendUserMsg,
  userReg,
  updatePsw,
  getCompanyList,
  fireDetailByPsw,
  getAttachListByPsw,
  getByTree,
  addUserOrUpdate,
  userFileInfo,
];
// 需要用表单提交的数据
export const fromUrls: string[] = [];
// 带文件的请求
export const fileUrls = [
  uploadAttachFile,
  uploadAttachImage,
  uploadModel,
  updateCaseFile,
  uploadFile,
  newupload,
  insertCaseFile,
  saveCaseFileInfo,
  newFileupload,
  ffmpegMergeImage,
];
// 需要限定卫GET请求方式的url
export const GetUrls = [getRoleList, getCompanyList];
// 需要限定请求方式的url
export const PostUrls = [
  exampleList,
  getFireList,
  getMessageList,
  getSceneList,
  getModelSceneList,
];

// 未认证code
export const unAuthCode = [3004, 4008, 4010, 7012];
export const successCode = [0, "000000", 200];
// baseURL
export const baseURL = import.meta.env.DEV ? "" : "";

export const notOpenUrls: string[] = [uploadModel, getDownloadProcess];
