import{t as e}from"./got-BBDj7u1e.mjs";import t from"dayjs";const n={path:`/exchangesys/:type`,categories:[`university`],example:`/nju/exchangesys/proj`,parameters:{type:`分类名`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`本科生交换生系统`,maintainers:[],handler:r,description:`| 新闻通知 | 交换生项目 |
| -------- | ---------- |
| news     | proj       |`};async function r(n){let r=n.req.param(`type`),i={news:[`http://elite.nju.edu.cn/exchangesystem/index/moreList`,`http://elite.nju.edu.cn/exchangesystem/index/more?type=xw`,`新闻通知`],proj:[`http://elite.nju.edu.cn/exchangesystem/index/moreXmList`,`http://elite.nju.edu.cn/exchangesystem/index/more?type=xm`,`交换生项目`]},{data:a}=await e({url:i[r][0]+`?page=1&limit=20&.me=c3lzLmluZGV4`,headers:{Referer:i[r][1]}});return{title:`本科生交换生管理系统-${i[r][2]}`,link:i[r][1],item:a&&a.data&&a.data.map(e=>r===`proj`?{title:e.mc,description:e.mc,pubDate:t(e.cjsj),link:e.sqyq}:r===`news`?{title:e.bt,author:e.createBy,description:e.nr,pubDate:t(e.createDate),link:`http://elite.nju.edu.cn/exchangesystem/index/detail?pid=${e.pid}`}:null)}}export{n as route};