import{t as e}from"./got-BBDj7u1e.mjs";import{load as t}from"cheerio";const n={path:`/sxy/:type`,categories:[`university`],example:`/zzu/sxy/xyxw`,parameters:{type:`分类名`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`www5.zzu.edu.cn/sxy/`]}],name:`郑大商学院`,maintainers:[`amandus1990`],handler:r,description:`| 学院新闻 | 通知公告 | 教学科研 | 党工团学 | 讲座报告 | 学者观点 |
| -------- | -------- | -------- | -------- | -------- | -------- |
| xyxw     | tzgg     | jxky     | dgtx     | jzbg     | xzgd     |`};async function r(n){let r=n.req.param(`type`),o={xyxw:[`学院新闻`,`https://www5.zzu.edu.cn/sxy/index/xyxw.htm`],tzgg:[`通知公告`,`https://www5.zzu.edu.cn/sxy/index/tzgg.htm`],jxky:[`教学科研`,`https://www5.zzu.edu.cn/sxy/index/jxky.htm`],dgtx:[`党工团学`,`https://www5.zzu.edu.cn/sxy/index/dgtx.htm`],jzbg:[`讲座报告`,`https://www5.zzu.edu.cn/sxy/index/jzbg.htm`],xzgd:[`学者观点`,`https://www5.zzu.edu.cn/sxy/index/xzgd.htm`]},s=t((await e(o[r][1])).data),c=r===`xyxw`?i(s,o,r):a(s,o,r);return{title:`郑大商学院-${o[r][0]}`,link:o[r][1],item:c}}function i(e,t,n){return e(`section.n_titu ul li`).toArray().slice(0,6).map(r=>{let i=e(r),a=i.find(`a`).first(),o=new URL(a.attr(`href`),t[n][1]).href,s=a.attr(`title`)||a.text().trim(),c=i.find(`.right .con p`).text().trim(),l=i.find(`.time_con h3`).text().trim();return{title:s,link:o,pubDate:`${i.find(`.time_con h6`).text().trim()}-${l}`,description:c}})}function a(e,t,n){return e(`.n_notice ul.ul li`).toArray().slice(0,16).map(r=>{let i=e(r),a=i.find(`a`).first(),o=new URL(a.attr(`href`),t[n][1]).href;return{title:a.attr(`title`),link:o,pubDate:i.find(`span.span01`).text().trim()||null}})}export{n as route};