mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-10 23:34:38 +08:00
@@ -226,6 +226,12 @@ type 为 all 时,category 参数不支持 cost 和 free
|
||||
|
||||
<Route author="junfengP" example="/metred/fuli" path="/metred/fuli" />
|
||||
|
||||
## 好队友
|
||||
|
||||
### 工作机会
|
||||
|
||||
<Route author="lotosbin" example="/network360/jobs" path="/network360/jobs"/>
|
||||
|
||||
## 古诗文网
|
||||
|
||||
### 首页推荐
|
||||
|
||||
@@ -1780,6 +1780,9 @@ router.get('/cneb/guoneinews', require('./routes/cneb/guoneinews'));
|
||||
// 邮箱
|
||||
router.get('/mail/imap/:email', require('./routes/mail/imap'));
|
||||
|
||||
// 好队友
|
||||
router.get('/network360/jobs', require('./routes/network360/jobs'));
|
||||
|
||||
// 智联招聘
|
||||
router.get('/zhilian/:city/:keyword', require('./routes/zhilian/index'));
|
||||
|
||||
|
||||
24
lib/routes/network360/jobs.js
Normal file
24
lib/routes/network360/jobs.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `https://ourwork-api.nework360.com/needs/listHotJobs?pageNum=1&limit=100`,
|
||||
});
|
||||
|
||||
const data = response.data.data;
|
||||
|
||||
const items = data.map((jobDetail) => ({
|
||||
title: jobDetail.jobName,
|
||||
link: `https://ourwork.nework360.com/project/detail/${jobDetail.needsId}`,
|
||||
author: jobDetail.nickname,
|
||||
description: jobDetail.description,
|
||||
pubDate: new Date(jobDetail.createTime).toUTCString(),
|
||||
}));
|
||||
|
||||
ctx.state.data = {
|
||||
title: '好队友-远程工作',
|
||||
link: 'https://ourwork.nework360.com/job/list',
|
||||
item: items,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user