Commit 849375a0 authored by Hsinli's avatar Hsinli

addd

parent 76ab5a8d
Pipeline #13191 passed with stage
in 22 seconds
'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;
'use strict';
module.exports = app => {
const router = app.router.namespace(app.config.projectRootPath + '/credit');
//我的信用-黑名单报告
router.get('third', '/blacklist/report', 'credit.blacklist.getBlacklistReport');
};
'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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment