Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
849375a0
Commit
849375a0
authored
Sep 03, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
76ab5a8d
Pipeline
#13191
passed with stage
in 22 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
0 deletions
+59
-0
blacklist.js
app/controller/credit/blacklist.js
+19
-0
credit.js
app/router/credit.js
+12
-0
blacklist.js
app/service/credit/blacklist.js
+28
-0
No files found.
app/controller/credit/blacklist.js
0 → 100644
View file @
849375a0
'use strict'
;
const
Controller
=
require
(
'egg'
).
Controller
;
class
BlacklistController
extends
Controller
{
/**
* 获取黑名单报告
*/
async
getBlacklistReport
()
{
const
{
ctx
}
=
this
;
let
ret
=
await
ctx
.
service
.
credit
.
blacklist
.
getReport
();
ctx
.
success
(
ret
);
}
}
module
.
exports
=
BlacklistController
;
app/router/credit.js
0 → 100644
View file @
849375a0
'use strict'
;
module
.
exports
=
app
=>
{
const
router
=
app
.
router
.
namespace
(
app
.
config
.
projectRootPath
+
'/credit'
);
//我的信用-黑名单报告
router
.
get
(
'third'
,
'/blacklist/report'
,
'credit.blacklist.getBlacklistReport'
);
};
app/service/credit/blacklist.js
0 → 100644
View file @
849375a0
'use strict'
;
const
Service
=
require
(
'egg'
).
Service
;
const
moment
=
require
(
'moment'
);
class
BlacklistService
extends
Service
{
/**
* 黑名单报告
*/
async
getReport
()
{
const
{
ctx
}
=
this
;
let
ret
=
{
test
:
132
};
return
ret
;
}
}
module
.
exports
=
BlacklistService
;
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