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