function a(a="7d"){return Promise.resolve({itemCardSales:Math.floor(1e3*Math.random())+500,drawCount:Math.floor(5e3*Math.random())+2e3,newUsers:Math.floor(200*Math.random())+100,totalPoints:Math.floor(1e5*Math.random())+5e4,itemCardChange:`+${Math.floor(30*Math.random())+5}%`,drawChange:`+${Math.floor(25*Math.random())+10}%`,newUserChange:`+${Math.floor(20*Math.random())+5}%`,pointsChange:`+${Math.floor(15*Math.random())+3}%`})}function t(a="30d",t="day"){const o="today"===a?1:"7d"===a?7:30,e=[];for(let r=0;r<o;r++){const a=new Date;a.setDate(a.getDate()-(o-r-1)),e.push({date:a.toISOString().split("T")[0],value:Math.floor(1e3*Math.random())+200})}return Promise.resolve({granularity:t,list:e})}function o(a=1,t=20){const o=[];for(let e=0;e<t;e++)o.push({id:(a-1)*t+e+1,nickname:`用户${(a-1)*t+e+1}`,avatar:`https://api.dicebear.com/7.x/avataaars/svg?seed=user${e}`,createdAt:new Date(Date.now()-7*Math.random()*24*60*60*1e3).toISOString(),pointsBalance:Math.floor(1e4*Math.random()),inventoryCount:Math.floor(50*Math.random())+1,itemCardCount:Math.floor(20*Math.random())});return Promise.resolve({page:a,pageSize:t,total:156,list:o})}function e(a,t=50){const o=[],e=["幸运转盘","积分抽奖","道具兑换","限时活动","每日签到"];for(let r=0;r<t;r++)o.push({id:(a||0)+r+1,userId:Math.floor(1e3*Math.random())+1,nickname:`用户${Math.floor(100*Math.random())+1}`,issueId:Math.floor(10*Math.random())+1,issueName:e[Math.floor(Math.random()*e.length)],isWinner:Math.random()>.7?1:0,createdAt:new Date(Date.now()-60*Math.random()*60*1e3).toISOString()});return Promise.resolve({list:o,sinceId:(a||0)+t})}function r(a=50){const t=[],o={bind_mobile:"需要绑定手机号",join_guild:"需要加入公会"};for(let e=0;e<Math.min(a,8);e++){const a=e%2==0?"bind_mobile":"join_guild";t.push({userId:e+1,nickname:`用户${e+1}`,avatar:`https://api.dicebear.com/7.x/avataaars/svg?seed=user${e}`,taskType:a,taskLabel:o[a]})}return Promise.resolve({list:t})}export{e as a,o as b,t as c,r as d,a as f};
