import{av as o,aI as s}from"./index-DZAIUlH9.js";const r="https://dashboard.jetprintapp.com",c=o({id:"marketing",state:()=>({}),actions:{async marketingAffiliateLinkApply(){return await s.post(`${r}/shopapi/marketing/affiliate_link/apply`,{})},async marketingConfigGet(){return await s.post(`${r}/shopapi/marketing/config/get`,{})},async marketingCouponCodeApply(t){return await s.post(`${r}/shopapi/marketing/coupon_code/apply`,{type:t})},async marketingFlowList(t,a){return await s.post(`${r}/shopapi/marketing/flow/list`,{current:t,size:a})},async marketingWithdrawList(t,a,i,e){return await s.post(`${r}/shopapi/marketing/withdraw/list`,{current:t,size:a,sortBy:i,sortType:e})},async marketingWithdrawApply(t,a){return await s.post(`${r}/shopapi/marketing/withdraw/apply`,{receivingAccount:t,amount:a})},async marketingCommission(){return await s.post(`${r}/shopapi/marketing/commission`,{})},async marketingFlowStatistics(t,a,i,e){return await s.post(`${r}/shopapi/marketing/flow/statistics`,{code:t,statisticTimeStart:a,statisticTimeEnd:i,hourOffset:e})}}});export{c as m};