// 物业管理员
import http from "@/apis/axios";
const api = "admin/";
export default {
  // 添加
  add: (data, params) => http(api + "catcreate", data, "post", params),
  // 删除
  delete: (data, params) => http(api + "delete", data, "post", params),
  // 分页查询
  list: (data, params) => http(api + "catplist", data, "post", params),
  // 详情
  detail: (data, params) => http(api + "catinfo", data, "post", params),
  // 更新
  update: (data, params) => http(api + "catedit", data, "post", params),
  // 修改状态
  status: (data, params) => http(api + "catstatus", data, "post", params),
  // 商品分类列表
  goodsList: (data, params) => http(api + "catlist", data, "post", params),
  // 全部规格列表
  specstitle: (data, params) => http(api + "specstitle", data, "post", params),
  // 修改毛利率
  editRate: (data, params) => http(api + "catratedit", data, "post", params),
};
