import{r as e}from"./request.92d2eb68.js";const n="/inventory",a=r=>{const t=r==null?void 0:r.data;return t?Array.isArray(t)?{list:t,total:t.length}:Array.isArray(t.list)?{list:t.list,total:typeof t.total=="number"?t.total:t.list.length}:typeof t=="object"?{list:[t],total:1}:{list:[],total:0}:{list:[],total:0}},c=async r=>{const t=await e.get(`${n}/list`,{params:r});return a(t)},y=async r=>{const t=await e.get(`${n}/detail`,{params:r}),s=t==null?void 0:t.data;return s?Array.isArray(s)?{list:s,total:s.length}:Array.isArray(s.list)?{list:s.list,total:typeof s.total=="number"?s.total:s.list.length}:{list:[],total:0}:{list:[],total:0}},u=async r=>{const t=await e.get(`${n}/log/list`,{params:r});return a(t)},f=async({keyword:r,page:t,pageSize:s}={})=>{const i={keyword:r||void 0,page:t,page_size:s},o=await e.get(`${n}/grouped-list`,{params:i});return a(o)},g=async()=>await e.get(`${n}/summary`);export{y as a,f as b,u as c,c as f,g as i};