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
a5707719
Commit
a5707719
authored
Sep 10, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
43ab61e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
5 deletions
+42
-5
home.js
app/controller/credit/home.js
+18
-0
credit.js
app/router/credit.js
+5
-5
home.js
app/service/credit/home.js
+19
-0
No files found.
app/controller/credit/home.js
0 → 100644
View file @
a5707719
'use strict'
;
const
Controller
=
require
(
'egg'
).
Controller
;
class
HomeController
extends
Controller
{
/**
* 我的信用首页
*/
async
home
()
{
const
{
ctx
}
=
this
;
let
ret
=
await
ctx
.
service
.
credit
.
home
.
home
();
ctx
.
success
(
ret
);
}
}
module
.
exports
=
HomeController
;
app/router/credit.js
View file @
a5707719
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
module
.
exports
=
app
=>
{
module
.
exports
=
app
=>
{
const
router
=
app
.
router
.
namespace
(
app
.
config
.
projectRootPath
+
'/credit'
);
const
router
=
app
.
router
.
namespace
(
app
.
config
.
projectRootPath
+
'/credit'
);
const
loginAuth
=
app
.
middleware
.
loginAuth
({
type
:
'new'
});
//登录中间件
router
.
get
(
'/home'
,
'credit.order.getMyCredit'
);
router
.
get
(
'/home'
,
'credit.order.getMyCredit'
);
router
.
get
(
'/history/:type'
,
'credit.order.getRecord'
);
router
.
get
(
'/history/:type'
,
'credit.order.getRecord'
);
...
@@ -11,11 +12,10 @@ module.exports = app => {
...
@@ -11,11 +12,10 @@ module.exports = app => {
router
.
get
(
'/order/check_pay/:order_id'
,
'credit.order.checkPay'
);
router
.
get
(
'/order/check_pay/:order_id'
,
'credit.order.checkPay'
);
//我的信用-黑名单报告
//我的信用-黑名单报告
router
.
get
(
'/blacklist/report/:report_id'
,
'credit.blacklist.getBlacklistReport'
);
//获取报告信息
router
.
get
(
'/blacklist/report/:report_id'
,
loginAuth
,
'credit.blacklist.getBlacklistReport'
);
//获取报告信息
router
.
post
(
'/blacklist/report'
,
'credit.blacklist.applyBlacklistReport'
);
//查询个人黑名单报告
router
.
post
(
'/blacklist/report'
,
loginAuth
,
'credit.blacklist.applyBlacklistReport'
);
//查询个人黑名单报告
router
.
get
(
'/blacklist/init'
,
loginAuth
,
'credit.blacklist.blacklistInit'
);
//进入黑名单检测页面
router
.
get
(
'/blacklist/init'
,
'credit.blacklist.blacklistInit'
);
//进入黑名单检测页面
router
.
post
(
'/blacklist/verification_code'
,
loginAuth
,
'credit.blacklist.getBlacklistReportVerificationCode'
);
//获取短信验证码
router
.
post
(
'/blacklist/verification_code'
,
'credit.blacklist.getBlacklistReportVerificationCode'
);
//获取短信验证码
//我的信用-个人通话风险
//我的信用-个人通话风险
...
...
app/service/credit/home.js
0 → 100644
View file @
a5707719
'use strict'
;
const
Service
=
require
(
'egg'
).
Service
;
class
HomeService
extends
Service
{
}
module
.
exports
=
HomeService
;
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