import{H as i}from"./index-f1c6abff.js";const t=i(),r=i("yhzx"),s=new Map,o=new i("qrcode"),d={getNoticeUrl:(e,a="v2")=>t.get(`trading-notice/${a}/url`,{params:e}),getTradingDetailV2:(e,a="v2")=>t.get(`trading-notice/${a}/detail`,{params:e}),getFileList:(e,a="v2")=>t.get(`trading-notice/${a}/file/${e}`),getYgpCodeRequestParam:e=>t.get("trading-notice/new/qrcode/getRequestParam",{params:e}),getYgpUrl:e=>t.get("trading-notice/qrCode",{params:e}),getNodeList:e=>t.get("trading-notice/new/nodeList",{params:e}),getSingleNode:e=>t.get("trading-notice/new/singleNode",{params:e}),getNewDetailData:e=>t.get("trading-notice/new/detail",{params:e}),getAgendaData:e=>t.get("trading-notice/new/agenda/fetch",{params:e}),getRefDataset:e=>t.get("trading-notice/new/fetch/refDataset",{params:e}),getCorrelationDataset:e=>t.get("trading-notice/new/query/correlationDataset",{params:e}),getSubscribed:e=>r.get(`apis/user-subscribe/getIdByNoticeId/${e}`),subscribe:e=>r.post("apis/user-subscribe",e),unsubscribe:e=>r.post(`apis/user-subscribe/remove/${e}`),getDict:async(e,a="v2")=>{const n=s.get(e);if(n)return n;{const g=await t.get(`trading-notice/${a}/dict`,{params:{tradingProcess:e}});return s.set(e,g),g}},generateQrcode:e=>o.post("generate-qrcode",e,{noNeedTip:!0}),refreshQrcode:e=>o.post("refresh-qrcode",e,{noNeedTip:!0})},p=i("search"),c=new i("mhyy"),l={getTradeTypes:e=>c.get(`/cms/trade/public/${e}`),getAreas:e=>c.get(`/cms/trade/public/areas/${e}`),getJyggList:e=>p.post("v2/items",e),...d};export{l as y};