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
41353044
Commit
41353044
authored
Jan 07, 2015
by
杨翌文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b304f3b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
forumAccessContorl.js
app/models/forumAccessContorl.js
+5
-1
forumShareLog.js
app/models/forumShareLog.js
+6
-2
forumThread.js
app/models/forumThread.js
+4
-0
No files found.
app/models/forumAccessContorl.js
View file @
41353044
...
...
@@ -15,12 +15,16 @@ var ForumAccessControlSchema = new Schema({
index
:
true
,
ref
:
'ForumRole'
},
action
:
{
//角色行为
type
:
String
,
require
:
true
,
index
:
true
},
status
:
{
//行为状态1,允许,0拒绝
type
:
Number
,
require
:
true
,
default
:
1
}
},
{
'collection'
:
'pisns_forum_access_control'
});
...
...
app/models/forumShareLog.js
View file @
41353044
...
...
@@ -21,10 +21,14 @@ var ForumShareLogSchema = new Schema({
index
:
true
,
ref
:
'ForumThread'
},
destination
:{
//分享的目标,微信好友,微信朋友圈,QQ空间,微博等等
destination
:
{
//分享的目标,微信好友,微信朋友圈,QQ空间,微博等等
type
:
String
,
require
:
true
,
index
:
true
index
:
true
},
ip
:
{
//IP地址
type
:
String
,
require
:
true
},
created
:
{
//分享时间
type
:
Date
,
...
...
app/models/forumThread.js
View file @
41353044
...
...
@@ -43,6 +43,10 @@ var ForumThreadSchema = new Schema({
comments
:
{
//评论内容列表
type
:
Array
},
share
:
{
//自定义分享
type
:
Schema
.
Types
.
ObjectId
,
ref
:
'ForumShare'
},
pv_count
:
{
//话题的访问量
type
:
Number
,
require
:
true
,
...
...
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