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

// 不需要登录就能请求的接口
export const notLoginUrls = [
  userLogin,
  getCode,
  sendUserMsg,
  userReg,
  updatePsw,
  getCompanyList,
  fireDetailByPsw,
  getAttachListByPsw,
];
// 需要用表单提交的数据
export const fromUrls: string[] = [];
// 带文件的请求
export const fileUrls = [
  uploadAttachFile,
  uploadAttachImage,
  uploadModel,
  updateCaseFile,
  uploadFile,
  insertCaseFile,
  saveCaseFileInfo,
];
// 需要限定卫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"];
// baseURL
export const baseURL = import.meta.env.DEV ? "/api" : "";

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