Commit fab93375 authored by 陈志良's avatar 陈志良

1

parent bae4552f
...@@ -433,8 +433,7 @@ router.get('/info/:fid/tags', function(req, res, next) { ...@@ -433,8 +433,7 @@ router.get('/info/:fid/tags', function(req, res, next) {
var conditions = { var conditions = {
ent_code: req.session.user.ent_code, ent_code: req.session.user.ent_code,
info: fid, info: fid
type:1
}; };
if (fid) { if (fid) {
forumTagService.getAllTag(conditions,pageNo,pageSize,function(err,results){ forumTagService.getAllTag(conditions,pageNo,pageSize,function(err,results){
...@@ -450,3 +449,25 @@ router.get('/info/:fid/tags', function(req, res, next) { ...@@ -450,3 +449,25 @@ router.get('/info/:fid/tags', function(req, res, next) {
} }
}); });
//查询前台可使用的所有标签(针对发帖)
router.get('/info/:fid/mobileList', function(req, res, next) {
var fid = req.params.fid || null;
var pageNo = req.query.pageNo || 1;
var pageSize = req.query.pageSize || 10;
var conditions={
ent_code:req.session.user.ent_code,
type:1
};
if (fid) {
forumTagService.getAllTag(conditions,pageNo,pageSize,function(err,results){
if(err){
console.error(err);
res.json(returnCode.BUSY);
}else{
res.json(_.assign(results, returnCode.SUCCESS));
}
});
} else {
res.json(returnCode.WRONG_PARAM);
}
});
\ No newline at end of file
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