Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
872f93fa
Commit
872f93fa
authored
Sep 11, 2015
by
陈家荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新设置版主接口
parent
0acaf5f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
42 deletions
+4
-42
forumModeratorApply.js
app/controllers/admin/forumModeratorApply.js
+4
-42
No files found.
app/controllers/admin/forumModeratorApply.js
View file @
872f93fa
...
@@ -57,8 +57,8 @@ router.post('/forumModeratorApply/create', function(req, res, next) {
...
@@ -57,8 +57,8 @@ router.post('/forumModeratorApply/create', function(req, res, next) {
router
.
post
(
'/forumModeratorApply/createOrUpdate'
,
function
(
req
,
res
,
next
)
{
router
.
post
(
'/forumModeratorApply/createOrUpdate'
,
function
(
req
,
res
,
next
)
{
var
ent_code
=
req
.
session
.
user
.
ent_code
;
var
ent_code
=
req
.
session
.
user
.
ent_code
;
var
fuserId
=
req
.
body
.
fuserId
;
var
fuserId
=
req
.
body
.
fuserId
;
var
applyMsg
=
req
.
body
.
applyMsg
;
var
infoIds
=
req
.
body
.
infoIds
;
if
(
fuserId
&&
applyMsg
)
{
if
(
fuserId
)
{
var
conditions
=
{
var
conditions
=
{
ent_code
:
ent_code
,
ent_code
:
ent_code
,
forumUser
:
fuserId
forumUser
:
fuserId
...
@@ -67,7 +67,8 @@ router.post('/forumModeratorApply/createOrUpdate', function(req, res, next) {
...
@@ -67,7 +67,8 @@ router.post('/forumModeratorApply/createOrUpdate', function(req, res, next) {
var
model
=
{
var
model
=
{
ent_code
:
ent_code
,
ent_code
:
ent_code
,
forumUser
:
fuserId
,
forumUser
:
fuserId
,
applyMsg
:
applyMsg
infoIds
:
infoIds
,
status
:
1
};
};
forumModeratorApplyService
.
createOrUpdateLimitOperation
(
conditions
,
model
,
function
(
err
,
ModeratorApply
)
{
forumModeratorApplyService
.
createOrUpdateLimitOperation
(
conditions
,
model
,
function
(
err
,
ModeratorApply
)
{
if
(
err
)
{
if
(
err
)
{
...
@@ -104,7 +105,6 @@ router.post('/forumModeratorApply/updateById', function(req, res, next) {
...
@@ -104,7 +105,6 @@ router.post('/forumModeratorApply/updateById', function(req, res, next) {
}
}
});
});
//根据userId获取
//根据userId获取
router
.
get
(
'/forumModeratorApply/get/:fuserId'
,
function
(
req
,
res
,
next
)
{
router
.
get
(
'/forumModeratorApply/get/:fuserId'
,
function
(
req
,
res
,
next
)
{
var
fuserId
=
req
.
params
.
fuserId
;
var
fuserId
=
req
.
params
.
fuserId
;
...
@@ -141,44 +141,6 @@ router.post('/forumModeratorApply/delete/:id', function(req, res, next) {
...
@@ -141,44 +141,6 @@ router.post('/forumModeratorApply/delete/:id', function(req, res, next) {
}
}
});
});
//列表
// router.post('/forumModeratorApply/list', function(req, res, next) {
// var pageNo = req.body.pageNo || 1;
// var pageSize = req.body.pageSize || 10;
// var search = req.body.search;
// var conditions = {
// ent_code: req.session.user.ent_code
// };
// if (search) {
// if (search.nickName) { //用户昵称
// conditions.forumUser.nickName = {
// $regex: search.nickName
// };
// }
// if (search.applyMsg) {
// conditions.applyMsg = {
// $regex: search.applyMsg
// };
// }
// }
// if (search.status && Number(search.status) != 3) {
// conditions.status = Number(search.status);
// }
// forumModeratorApplyService.getForumModeratorApplys(conditions, pageNo, pageSize, null, function(err, results) {
// if (err) {
// console.error(err);
// res.json(returnCode.BUSY);
// } else {
// res.json(_.assign(results, returnCode.SUCCESS));
// }
// });
// });
//列表
//列表
router
.
post
(
'/forumModeratorApply/list'
,
function
(
req
,
res
,
next
)
{
router
.
post
(
'/forumModeratorApply/list'
,
function
(
req
,
res
,
next
)
{
var
pageNo
=
req
.
body
.
pageNo
||
1
;
var
pageNo
=
req
.
body
.
pageNo
||
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment