Commit 7b1de2dd authored by Hsinli's avatar Hsinli

add

parent e847b119
Pipeline #19667 passed with stage
in 2 seconds
......@@ -17,6 +17,20 @@ class NewsController extends Controller {
ctx.success(ret);
}
/**
* 获取资讯内容
*/
async getNewsList() {
const { ctx } = this;
let inputParams = ctx.request.body;
let rule = {
page: { type: 'number', required: true },
limit: { type: 'number', required: true },
};
ctx.validate(rule, inputParams);
let ret = await ctx.service.cd.news.getList(inputParams);
ctx.success(ret);
}
}
......
......@@ -9,6 +9,7 @@ module.exports = app => {
//资讯详细内容
router.get('third', '/news/:id', 'cd.news.getNews');
router.post('third', '/news/list', 'cd.news.getNewsList');
//预售楼盘搜索历史
router.get('/presell/search_history', loginAuth, 'cd.presellSearchHistory.getSearchHistory');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment