import{N as n}from"./index-CUnFTKV2.js";var a=(t=>(t[t.None=0]="None",t[t.Coupon=1]="Coupon",t[t.YiFanShang=2]="YiFanShang",t[t.WuXianShang=3]="WuXianShang",t[t.LianJiShang=4]="LianJiShang",t[t.CustomUrl=5]="CustomUrl",t))(a||{});const s={0:"不跳转",1:"优惠券",2:"一番赏",3:"无限赏",4:"连击赏",5:"自定义URL"},e="/admin/business/advert";function u(t){return n({url:e,method:"get",params:t})}function i(t){return n({url:e,method:"post",data:t})}function d(t,r){return n({url:`${e}/${t}`,method:"put",data:r})}function h(t){return n({url:`${e}/${t}`,method:"delete"})}function l(){return n({url:`${e}/types`,method:"get"})}function c(t){return n({url:`${e}/types`,method:"post",data:t})}function g(t,r){return n({url:`${e}/types/${t}`,method:"put",data:r})}function f(t){return n({url:`${e}/types/${t}`,method:"delete"})}export{a as A,u as a,s as b,i as c,h as d,c as e,g as f,l as g,f as h,d as u};
