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
3e35da1e
Commit
3e35da1e
authored
Apr 20, 2015
by
陈志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
0ed28b1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
forumLog.js
app/controllers/admin/forumLog.js
+32
-0
No files found.
app/controllers/admin/forumLog.js
0 → 100644
View file @
3e35da1e
'use strict'
;
var
express
=
require
(
'express'
),
router
=
express
.
Router
(),
returnCode
=
require
(
'../../utils/returnCode'
),
_
=
require
(
'lodash'
),
then
=
require
(
'thenjs'
),
moment
=
require
(
'moment'
),
mongoose
=
require
(
'mongoose'
);
//模型
var
ForumPvLog
=
mongoose
.
model
(
'ForumPvLog'
),
ForumUvLog
=
mongoose
.
model
(
'ForumUvLog'
);
module
.
exports
=
function
(
app
)
{
app
.
use
(
'/admin/forum'
,
router
);
};
var
dateFormat
=
function
(
date
){
return
moment
(
new
Date
(
date
)).
format
(
'YYYY-MM-DD'
);
};
//社区情况(首页)
router
.
post
(
'/statistic '
,
uploadFile
(
'oss'
,
'forum'
),
function
(
req
,
res
,
next
)
{
then
(
function
(
cont
){
}).
then
(
function
(
cont
){
}).
then
(
function
(
cont
){
}).
fail
(
function
(
cont
,
err
){
});
});
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