Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-shop-manage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
2017-04-17 19:55:51 +0800
Commit
59fbc67df360ac05eb261e92f39458a1e12457ee
1 parent
adbb3c9f
api完善
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
23 deletions
.eslintcache
server/app.js
server/common/api.js
server/common/config.js
server/controllers/user.js
.eslintcache
View file @
59fbc67
{
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/directives/index.js"
:{
"size"
:
0
,
"mtime"
:
1491443244000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/directives/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/lint-commit.js"
:{
"size"
:
1883
,
"mtime"
:
1492413976000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/lint-commit.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/app.js"
:{
"size"
:
458
,
"mtime"
:
1492412724000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/app.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/util.js"
:{
"size"
:
152
,
"mtime"
:
1492156059000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/util.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.base.conf.js"
:{
"size"
:
3335
,
"mtime"
:
1492156392000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.base.conf.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.dev.conf.js"
:{
"size"
:
196
,
"mtime"
:
1492155807000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.dev.conf.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.prod.conf.js"
:{
"size"
:
544
,
"mtime"
:
1492410496000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.prod.conf.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/config/config.js"
:{
"size"
:
56
,
"mtime"
:
1490951756000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/config/config.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/filters/index.js"
:{
"size"
:
102
,
"mtime"
:
1491373576000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/filters/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/filters/money-short.js"
:{
"size"
:
209
,
"mtime"
:
1491374592000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/filters/money-short.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/app.vue"
:{
"size"
:
170
,
"mtime"
:
1492413914000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/app.vue"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/index.js"
:{
"size"
:
54
,
"mtime"
:
1492158379000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/login/index.js"
:{
"size"
:
166
,
"mtime"
:
1492162219000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/login/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/login/login.vue"
:{
"size"
:
2701
,
"mtime"
:
1492414013000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/login/login.vue"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/dashboard/dashboard.vue"
:{
"size"
:
348
,
"mtime"
:
1492163066000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/dashboard/dashboard.vue"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/dashboard/index.js"
:{
"size"
:
182
,
"mtime"
:
1492162754000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/dashboard/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/index.js"
:{
"size"
:
111
,
"mtime"
:
1492162620000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/overview/index.js"
:{
"size"
:
170
,
"mtime"
:
1492412737000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/overview/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/index.js"
:{
"size"
:
266
,
"mtime"
:
1492163177000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/layout.vue"
:{
"size"
:
3754
,
"mtime"
:
1492162425000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/layout.vue"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/services/service.home.js"
:{
"size"
:
260
,
"mtime"
:
1492406644000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/services/service.home.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/app.js"
:{
"size"
:
918
,
"mtime"
:
1492410473000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/app.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/api.js"
:{
"size"
:
323
,
"mtime"
:
1492412708000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/api.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/config.js"
:{
"size"
:
779
,
"mtime"
:
1492135825000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/config.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/context.js"
:{
"size"
:
434
,
"mtime"
:
1492412637000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/context.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/middleware.js"
:{
"size"
:
539
,
"mtime"
:
1492136892000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/middleware.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/util.js"
:{
"size"
:
436
,
"mtime"
:
1492136998000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/util.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/controllers/index.js"
:{
"size"
:
425
,
"mtime"
:
1492136884000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/controllers/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/controllers/user.js"
:{
"size"
:
790
,
"mtime"
:
1492155582000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/controllers/user.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/auth.js"
:{
"size"
:
328
,
"mtime"
:
1492137531000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/auth.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/before.js"
:{
"size"
:
582
,
"mtime"
:
1492138276000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/before.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/error.js"
:{
"size"
:
454
,
"mtime"
:
1492137829000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/error.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/index.js"
:{
"size"
:
276
,
"mtime"
:
1492135839000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/proxy.js"
:{
"size"
:
358
,
"mtime"
:
1492138303000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/proxy.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/overview/overview.vue"
:{
"size"
:
391
,
"mtime"
:
1492414048000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/overview/overview.vue"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}}}
\ No newline at end of file
{
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/directives/index.js"
:{
"size"
:
0
,
"mtime"
:
1491443244000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/directives/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/lint-commit.js"
:{
"size"
:
1883
,
"mtime"
:
1492413976000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/lint-commit.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/app.js"
:{
"size"
:
458
,
"mtime"
:
1492412724000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/app.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/util.js"
:{
"size"
:
152
,
"mtime"
:
1492156059000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/util.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.base.conf.js"
:{
"size"
:
3335
,
"mtime"
:
1492156392000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.base.conf.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.dev.conf.js"
:{
"size"
:
196
,
"mtime"
:
1492155807000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.dev.conf.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.prod.conf.js"
:{
"size"
:
544
,
"mtime"
:
1492410496000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/build/webpack.prod.conf.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/config/config.js"
:{
"size"
:
56
,
"mtime"
:
1490951756000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/config/config.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/filters/index.js"
:{
"size"
:
102
,
"mtime"
:
1491373576000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/filters/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/filters/money-short.js"
:{
"size"
:
209
,
"mtime"
:
1491374592000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/filters/money-short.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/app.vue"
:{
"size"
:
170
,
"mtime"
:
1492413914000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/app.vue"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/index.js"
:{
"size"
:
54
,
"mtime"
:
1492158379000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/login/index.js"
:{
"size"
:
166
,
"mtime"
:
1492162219000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/login/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/login/login.vue"
:{
"size"
:
2701
,
"mtime"
:
1492414013000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/auth/login/login.vue"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/dashboard/dashboard.vue"
:{
"size"
:
348
,
"mtime"
:
1492163066000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/dashboard/dashboard.vue"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/dashboard/index.js"
:{
"size"
:
182
,
"mtime"
:
1492162754000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/dashboard/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/index.js"
:{
"size"
:
111
,
"mtime"
:
1492162620000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/overview/index.js"
:{
"size"
:
170
,
"mtime"
:
1492412737000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/overview/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/index.js"
:{
"size"
:
266
,
"mtime"
:
1492163177000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/layout.vue"
:{
"size"
:
3754
,
"mtime"
:
1492162425000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/layout.vue"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/services/service.home.js"
:{
"size"
:
260
,
"mtime"
:
1492406644000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/services/service.home.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/app.js"
:{
"size"
:
919
,
"mtime"
:
1492425948000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/app.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/config.js"
:{
"size"
:
901
,
"mtime"
:
1492429648000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/config.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/context.js"
:{
"size"
:
633
,
"mtime"
:
1492422538000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/context.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/middleware.js"
:{
"size"
:
539
,
"mtime"
:
1492136892000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/middleware.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/util.js"
:{
"size"
:
436
,
"mtime"
:
1492136998000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/common/util.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/controllers/index.js"
:{
"size"
:
424
,
"mtime"
:
1492422449000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/controllers/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/controllers/user.js"
:{
"size"
:
657
,
"mtime"
:
1492430000000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/controllers/user.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/auth.js"
:{
"size"
:
328
,
"mtime"
:
1492137531000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/auth.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/before.js"
:{
"size"
:
582
,
"mtime"
:
1492138276000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/before.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/error.js"
:{
"size"
:
454
,
"mtime"
:
1492137829000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/error.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/index.js"
:{
"size"
:
276
,
"mtime"
:
1492135839000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/index.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/proxy.js"
:{
"size"
:
358
,
"mtime"
:
1492138303000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/server/middleware/proxy.js"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}},
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/overview/overview.vue"
:{
"size"
:
391
,
"mtime"
:
1492414048000
,
"hashOfConfig"
:
"q2ce8q"
,
"results"
:{
"filePath"
:
"/Users/chenfeng/Documents/source/yoho/yoho-shop-manage/app/pages/home/overview/overview.vue"
,
"messages"
:[],
"errorCount"
:
0
,
"warningCount"
:
0
}}}
\ No newline at end of file
...
...
server/app.js
View file @
59fbc67
...
...
@@ -8,8 +8,6 @@ const session = require('express-session');
const
config
=
require
(
'./common/config'
);
const
logger
=
require
(
'yoho-node-lib/lib/logger'
);
const
helpers
=
require
(
'yoho-node-lib/lib/helpers'
);
const
middleware
=
require
(
'./middleware'
);
const
controllers
=
require
(
'./controllers'
);
let
app
=
new
Express
();
...
...
@@ -23,6 +21,9 @@ app.use(session({
secret
:
'yoho!shop@manage'
}));
const
middleware
=
require
(
'./middleware'
);
const
controllers
=
require
(
'./controllers'
);
try
{
// 前置中间件
app
.
use
(
middleware
.
before
);
...
...
server/common/api.js
View file @
59fbc67
const
_
=
require
(
'lodash'
);
const
Context
=
require
(
'./context'
);
const
request
=
require
(
'request'
);
const
config
=
global
.
yoho
.
config
;
const
API_ERROR
=
{
code
:
0
,
message
:
'网络异常'
};
const
API_INTERNAL_ERROR
=
{
code
:
500
,
message
:
'服务器错误'
};
class
Api
extends
Context
{
constructor
(
...
args
)
{
constructor
(
domain
=
config
.
domains
.
serve
)
{
super
();
console
.
log
(
args
);
this
.
domain
=
domain
;
}
get
(
url
,
data
,
headers
)
{
return
this
.
parse
(()
=>
{
return
request
.
get
({
url
:
`
$
{
this
.
domain
}
/${url}`
,
qs
:
data
,
headers
,
});
});
}
post
(
url
,
data
,
headers
)
{
return
this
.
parse
(()
=>
{
return
request
.
post
({
url
:
`
$
{
this
.
domain
}
/${url}`
,
form
:
data
,
headers
,
});
});
}
get
(
url
,
data
)
{
console
.
log
(
this
.
ctx
.
req
.
header
(
'host'
));
return
Promise
.
resolve
(
data
);
upload
()
{
}
post
(
url
,
data
)
{
console
.
log
(
this
.
ctx
.
req
.
header
(
'host'
));
return
Promise
.
resolve
(
data
);
download
()
{
}
parse
(
req
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
buffers
=
[],
response
;
req
()
.
on
(
'error'
,
error
=>
{
if
(
error
)
{
return
reject
(
API_ERROR
);
}
})
.
on
(
'data'
,
(
chunk
)
=>
{
buffers
.
push
(
chunk
);
})
.
on
(
'response'
,
(
res
)
=>
{
response
=
res
;
})
.
on
(
'end'
,
()
=>
{
console
.
log
(
response
.
length
);
if
(
buffers
)
{
// TODO 判断文件
try
{
let
jsonData
=
JSON
.
parse
(
buffers
.
toString
(
'utf-8'
));
if
(
_
.
get
(
jsonData
,
'code'
,
''
).
toString
()[
0
]
!==
'2'
)
{
return
reject
(
jsonData
);
}
return
resolve
(
jsonData
);
}
catch
(
error
)
{
return
reject
(
API_INTERNAL_ERROR
);
}
}
return
reject
(
API_INTERNAL_ERROR
);
});
});
}
}
...
...
server/common/config.js
View file @
59fbc67
...
...
@@ -9,6 +9,10 @@ const config = {
port
:
6006
,
siteUrl
:
'//m.yohobuy.com'
,
assetUrl
:
'//127.0.0.1:5001'
,
domains
:
{
serve
:
'http://serve.yohobuy.com'
,
platform
:
'http://192.168.102.202:8088/platform'
},
loggers
:
{
infoFile
:
{
close
:
true
,
...
...
server/controllers/user.js
View file @
59fbc67
...
...
@@ -9,18 +9,10 @@ const Api = require('../common/api');
class
UserController
extends
Context
{
login
(
req
,
res
)
{
this
.
instance
(
Api
,
'aaa'
,
'bbb'
,
'ccc'
).
get
().
then
(()
=>
{});
// if (req.body.username === 'admin' && req.body.password === '111') {
// res.session.LOGIN_UID = 1;
// return res.json({
// code: 200,
// message: '登录成功'
// });
// }
return
res
.
json
({
code
:
400
,
message
:
'用户名密码错误'
return
this
.
instance
(
Api
).
post
(
'service/account/v1/Profile/login'
,
'["hongyun","hongyun",2]'
).
then
(
result
=>
{
res
.
send
(
result
);
},
result
=>
{
res
.
send
(
result
);
});
}
logout
(
req
,
res
)
{
...
...
Please
register
or
login
to post a comment