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
1c2df9de
Commit
1c2df9de
authored
Sep 04, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add credit callrisk report
parent
8df4a89a
Pipeline
#13260
passed with stage
in 5 seconds
Changes
3
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
244 additions
and
0 deletions
+244
-0
callrisk.js
app/controller/credit/callrisk.js
+21
-0
credit.js
app/router/credit.js
+3
-0
callrisk.js
app/service/credit/callrisk.js
+220
-0
No files found.
app/controller/credit/callrisk.js
0 → 100644
View file @
1c2df9de
'use strict'
;
const
Controller
=
require
(
'egg'
).
Controller
;
class
CallriskController
extends
Controller
{
/**
* 获取黑名单报告
*/
async
getCallriskReport
()
{
const
{
ctx
}
=
this
;
let
ret
=
await
ctx
.
service
.
credit
.
callrisk
.
getReport
();
ctx
.
success
(
ret
);
}
}
module
.
exports
=
CallriskController
;
app/router/credit.js
View file @
1c2df9de
...
@@ -8,5 +8,8 @@ module.exports = app => {
...
@@ -8,5 +8,8 @@ module.exports = app => {
router
.
get
(
'third'
,
'/blacklist/report'
,
'credit.blacklist.getBlacklistReport'
);
router
.
get
(
'third'
,
'/blacklist/report'
,
'credit.blacklist.getBlacklistReport'
);
//我的信用-个人通话风险
router
.
get
(
'/callrisk/report'
,
'credit.callrisk.getCallriskReport'
);
};
};
app/service/credit/callrisk.js
0 → 100644
View file @
1c2df9de
This diff is collapsed.
Click to expand it.
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