Commit 04c79386 authored by 陈家荣's avatar 陈家荣

修改查询标签的接口,增加板块条件

parent fc9c8313
...@@ -36,11 +36,15 @@ router.get('/tag/list', function(req, res, next) { ...@@ -36,11 +36,15 @@ router.get('/tag/list', function(req, res, next) {
//查询前台可使用的所有标签(针对发帖) //查询前台可使用的所有标签(针对发帖)
router.get('/tag/mobileList', function(req, res, next) { router.get('/tag/mobileList', function(req, res, next) {
var pageNo = req.query.pageNo || 1; var pageNo = req.query.pageNo || 1;
var pageSize = req.query.pageSize || 10; var pageSize = req.query.pageSize || 100;
var infoId = req.query.infoId;
var conditions={ var conditions={
ent_code:req.session.user.ent_code, ent_code:req.session.user.ent_code,
type:1 type:1
}; };
if(infoId){ //查询板块
conditions.info = infoId;
}
forumTagService.getAllTag(conditions,pageNo,pageSize,function(err,results){ forumTagService.getAllTag(conditions,pageNo,pageSize,function(err,results){
if(err){ if(err){
console.error(err); console.error(err);
......
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