// 物业管理员
import http from "@/apis/axios";
const api = "admin/";
export default {
  // 添加
  add: (data, params) => http(api + "goodupcreate", data, "post", params),
  // 添加
  online_add: (data, params) => http(api + "gooduponline", data, "post", params),
  // 分页查询
  list: (data, params) => http(api + "gooduplist", data, "post", params),
  // 获取全部规格值
  valueall: (data, params) => http(api + "valueall", data, "post", params),
  // 规格值添加
  valueadd: (data, params) => http(api + "valuecreate", data, "post", params),
  // 详情
  detail: (data, params) => http(api + "goodupinfo", data, "post", params),
  // 基础信息更改
  update: (data, params) => http(api + "goodupeditinfo", data, "post", params),
  // 成本更改
  updateP: (data, params) => http(api + "goodupeditfee", data, "post", params),
  // 商品数据修改(全部)
  edit_update: (data, params) => http(api + "goodupedit", data, "post", params),
  // 删除
  delete: (data, params) => http(api + "goodupdelall", data, "post", params),
  // 更新状态
  status: (data, params) => http(api + "goodexam", data, "post", params),
  // 获取分类详情
  catinfo: (data, params) => http(api + "catinfo", data, "post", params),
  // 删除
  copy: (data, params) => http(api + "goodupcopy", data, "post", params),
  // 取实时金价
  golpricelast: (data, params) => http(api + "golpricelast", data, "post", params),

   //同一个spuCode下所有的商品都下线
   goodupoffline: (data, params) => http(api + "goodupoffline", data, "post", params),
   // 异常原因列表
  resultlist: (data, params) => http(api + "resultlist", data, "post", params),
 // 异常原因列表
 checkIsUpdate: (data, params) => http(api + "checkIsUpdate", data, "post", params),
  // 分页查询
  supplerlist: (data, params) => http(api + "supplerlist", data, "post", params),
};
