import{e as s}from"./index-DYPGJs8A.js";function e(){return s.get({url:"/api/user/agent/info"})}function t(e){return s.post({url:"/api/user/agent/status",data:{status:e},showSuccessMessage:!0})}function a(e){return s.post({url:"/api/user/agent/regenerate_code",data:e?{code:e}:{},showSuccessMessage:!0})}function r(e){return s.get({url:"/api/user/agent/shops",params:e})}function u(e,t){return s.post({url:"/api/user/agent/sub_agent/status",data:{id:e,status:t},showSuccessMessage:!0})}function n(e){return s.get({url:"/api/user/agent/sub_agent/products",params:{shop_id:e,page:1,size:100}})}function o(e){return s.get({url:"/api/user/agent/sub_agent/orders",params:{shop_id:e,page:1,size:100}})}function c(e){return s.get({url:"/api/user/agent/products",params:e})}function i(e,t){return s.post({url:"/api/user/agent/product/toggle",data:{id:e,status:t},showSuccessMessage:!0})}function p(e){return s.get({url:"/api/user/agent/market",params:e})}function g(e){return s.post({url:"/api/user/agent/product/import",data:e,showSuccessMessage:!0})}function d(e){return s.post({url:"/api/user/agent/connect",data:{code:e},showSuccessMessage:!0})}function f(e){return s.post({url:"/api/user/agent/disconnect",data:{parent_id:e},showSuccessMessage:!0})}export{p as a,r as b,n as c,o as d,d as e,f,e as g,t as h,g as i,c as j,a as r,i as t,u};
