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
b95efeaa
Commit
b95efeaa
authored
Sep 08, 2015
by
刘文胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
4de68b8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
forumModerator.js
app/controllers/mobile/forumModerator.js
+2
-0
forumModerator.js
app/models/forumModerator.js
+12
-4
No files found.
app/controllers/mobile/forumModerator.js
View file @
b95efeaa
...
...
@@ -25,7 +25,9 @@ module.exports = function(app) {
};
function
moderatorOperateLog
(
forumUser
,
thread
,
type
){
var
ent_code
=
thread
.
ent_code
;
var
forumModerator
=
new
ForumModerator
({
ent_code
:
ent_code
info
:
thread
.
info
,
userName
:
thread
.
from
.
nickName
||
thread
.
from
.
displayName
,
content
:
thread
.
_id
,
...
...
app/models/forumModerator.js
View file @
b95efeaa
...
...
@@ -3,15 +3,19 @@
var
mongoose
=
require
(
'mongoose'
),
Schema
=
mongoose
.
Schema
;
var
ForumModeratorSchema
=
new
Schema
({
ent_code
:{
type
:
Number
,
require
:
true
},
info
:
{
type
:
Schema
.
Types
.
ObjectId
,
require
:
tru
e
,
require
:
fals
e
,
index
:
true
,
ref
:
'ForumInfo'
},
userName
:{
type
:
String
,
require
:
tru
e
require
:
fals
e
},
content
:{
type
:
Schema
.
Types
.
ObjectId
,
...
...
@@ -19,11 +23,15 @@ var ForumModeratorSchema=new Schema({
},
behavior
:{
//行为:1.加精 2.取消精华 3.删帖
type
:
Number
,
require
:
tru
e
require
:
fals
e
},
moderatorName
:{
type
:
String
,
require
:
true
require
:
false
},
created
:{
type
:
Date
,
default
:
Date
.
now
}
},
{
'collection'
:
'pisns_forum_moderator_operation'
...
...
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