import{a5 as o}from"./index-GCZD4BFP.js";function d(t){return o({url:"/admin/erp/product/addProduct",method:"post",headers:{"Content-Type":"application/json"},data:t})}function a(t,e){return o({url:`/admin/erp/product/updateProduct/${t}`,method:"post",headers:{"Content-Type":"application/json"},data:e})}function u(t){return o({url:"/admin/erp/product",method:"get",params:t})}function i(t){return o({url:`/admin/erp/product/deletedProduct/${t}`,method:"post",headers:{"Content-Type":"application/json"}})}function c(t){const e={name:t.category_name,parent_id:t.parent_id?t.parent_id:"0",customSn:t.custom_sn,is_show:"YES"};return o({url:"admin/goods/categories",method:"post",data:e})}function s(t,e){const n={name:e.category_name,parent_id:e.parent_id?e.parent_id:"0",customSn:e.custom_sn};return o({url:`admin/goods/categories/${t}`,method:"put",data:n})}function p(t){return Array.isArray(t)&&(t=t.join(",")),o({url:`admin/goods/categories/${t}`,method:"delete"})}export{d as a,c as b,s as c,i as d,a as e,p as f,u as p};
