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
2e3739d7
Commit
2e3739d7
authored
Jan 22, 2015
by
张淼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e764cd24
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
0 deletions
+40
-0
forumService.js
app/service/forumService.js
+12
-0
intergal.js
app/service/intergal.js
+6
-0
rolePermission.js
app/service/rolePermission.js
+22
-0
No files found.
app/service/forumService.js
0 → 100644
View file @
2e3739d7
'use strict'
;
/**
* 新增社区板块
* @param {[type]}
* @param {Function}
* @return {[type]}
*/
exports
.
create
=
function
(
entity
,
callback
)
{
callback
(
null
,
null
);
};
\ No newline at end of file
app/service/intergal.js
0 → 100644
View file @
2e3739d7
'use strict'
;
//根据会员ID获取
exports
.
getIntegralById
=
function
(
mid
,
callback
){
console
.
log
(
''
);
};
\ No newline at end of file
app/service/rolePermission.js
0 → 100644
View file @
2e3739d7
'use strict'
;
//获取用户角色
exports
.
getRolePermiss
=
function
(
callback
){
//1.获取用户经验、积分
//2.获取角色权限列表
//3.根据积分、经验匹配对应的角色
};
//检查是否有操作权限
exports
.
checkRolePermiss
=
function
(
action
,
callback
){
var
action
=
req
.
query
.
action
||
''
;
//操作
//1.获取用户角色权限
//2.检查用户对应的角色是否有对应的操作权限
console
.
log
(
action
);
};
\ No newline at end of file
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