import { get, post, del, put } from '/@/utils/request';

export default {
  add: (data: object) => post("/designer/add", data),
  del: (id: number) => del("/designer/del", { ids: [id] }),
  edit: (data: object) => put("/designer/edit", data),
  getList: (data: object) => get("/designer/list", data),
  publish: (data: object) => put("/designer/publish", data),
  getAll: (data: object) => get("/designer/getAll", data),
  get: (code: string) => get("/designer/getInfoByCode", { code }),
}
