import{f as l,r as f,g as w}from"./jKZ1YmIl.js";import{u as s}from"./BD3TMmHG.js";const d=l("newsStore",()=>{const e=f({info:null,news:null,lists:{records:[],total:0,size:10,current:1,orders:[],pages:0},detail:{}}),r=async()=>{if(e.info)return e.info;const t=await s.$get("/client/news/newsBanner");return t&&(e.info=t),t},i=async()=>{const t=await s.$get("/client/home/newsBlock");return t&&(e.news=t),t},o=async(t=1,n=6)=>{const a=await s.$get("/client/news/newsList",{currPage:t,pageSize:n});return a&&(e.lists=a),a},c=async t=>{const n=await s.$get("/client/news/detail",{newsId:t});return n&&(e.detail[t]=n),n};return{...w(e),getInfo:r,getNews:i,getLists:o,getDetail:c}});export{d as u};
