import{N as e}from"./index-CUnFTKV2.js";var r=(t=>(t[t.YiFanShang=1]="YiFanShang",t[t.WuXianShang=2]="WuXianShang",t[t.ShangChengShang=10]="ShangChengShang",t[t.FuLiWu=15]="FuLiWu",t))(r||{});const i={1:"一番赏",2:"无限赏",10:"商城赏",15:"福利屋"},u="/admin/business/goods";function l(t){return e({url:u,method:"get",params:t})}function h(t){return e({url:`${u}/${t}`,method:"get"})}function c(t){return e({url:u,method:"post",data:t})}function $(t,n){return e({url:`${u}/${t}`,method:"put",data:n})}function m(t){return e({url:`${u}/${t}`,method:"delete"})}function p(t,n){return e({url:`${u}/${t}/status`,method:"put",data:{status:n}})}function f(t){return e({url:`${u}/${t}/copy`,method:"post"})}function g(t){return e({url:`${u}/${t}/clear-lottery`,method:"post"})}var a=(t=>(t[t.XianHuo=1]="XianHuo",t[t.YuShou=2]="YuShou",t[t.HuoBi=3]="HuoBi",t[t.BaoXiang=4]="BaoXiang",t))(a||{});const S={1:"现货",2:"预售",3:"货币",4:"宝箱"},s="/admin/business/prizes";function G(t){return e({url:`${u}/${t}/prizes`,method:"get"})}function L(t,n){return e({url:`${u}/${t}/prizes`,method:"post",data:n})}function E(t,n){return e({url:`${s}/${t}`,method:"put",data:n})}function x(t){return e({url:`${s}/${t}`,method:"delete"})}const o="/admin/business/goods-types";function B(){return e({url:o,method:"get"})}function _(t){return e({url:o,method:"post",data:t})}function b(t,n){return e({url:`${o}/${t}`,method:"put",data:n})}function X(t){return e({url:`${o}/${t}`,method:"delete"})}function Y(t,n){return e({url:`${o}/${t}/status`,method:"put",data:n})}function F(t){return e({url:`${u}/${t}/extend`,method:"get"})}function H(t,n){return e({url:`${u}/${t}/extend`,method:"put",data:n})}function O(t){return e({url:`${u}/${t}/extend`,method:"delete"})}export{i as G,a as P,h as a,F as b,c,H as d,O as e,r as f,G as g,S as h,L as i,E as j,x as k,b as l,_ as m,l as n,B as o,m as p,f as q,g as r,p as s,X as t,$ as u,Y as v};
