import http from "@/apis/axios";
const api = "admin/";
export default {
  // 新建异常原因
  add: (data, params) => http(api + "resultcreate", data, "post", params),
  // 删除异常原因
  delete: (data, params) => http(api + "resultdel", data, "post", params),
  // 获取异常原因列表
  list: (data, params) => http(api + "resultlist", data, "post", params),
  // 获取异常原因详情
  detail: (data, params) => http(api + "resultselect", data, "post", params),
  // 更新异常原因
  update: (data, params) => http(api + "resultedit", data, "post", params),
  // 修改异常原因状态
  status: (data, params) => http(api + "resultstatu", data, "post", params),
};
   