巴林闲侠
2 years ago
7 changed files with 102 additions and 8 deletions
@ -0,0 +1,23 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
async function bindAnxin2pep (ctx) { |
||||
|
try { |
||||
|
const models = ctx.fs.dc.models; |
||||
|
const { clickHouse } = ctx.app.fs |
||||
|
const { name } = ctx.request.body |
||||
|
|
||||
|
|
||||
|
ctx.status = 20; |
||||
|
} catch (error) { |
||||
|
ctx.fs.logger.error(`path: ${ctx.path}, error: error`); |
||||
|
ctx.status = 400; |
||||
|
ctx.body = { |
||||
|
message: typeof error == 'string' ? error : undefined |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
module.exports = { |
||||
|
bindAnxin2pep |
||||
|
}; |
@ -1,8 +1,13 @@ |
|||||
'use strict'; |
'use strict'; |
||||
|
|
||||
const project = require('../../controllers/project'); |
const project = require('../../controllers/project'); |
||||
|
const projectBind = require('../../controllers/project/bind') |
||||
|
|
||||
module.exports = function (app, router, opts) { |
module.exports = function (app, router, opts) { |
||||
app.fs.api.logAttr['GET/project/app_list'] = { content: '获取应用列表', visible: true }; |
app.fs.api.logAttr['GET/project/app_list'] = { content: '获取应用列表', visible: true }; |
||||
router.get('/project/app_list', project.appList); |
router.get('/project/app_list', project.appList); |
||||
|
|
||||
|
app.fs.api.logAttr['POST/project/bind'] = { content: '绑定安心云、项目管理项目', visible: true }; |
||||
|
router.post('/project/bind', projectBind.bindAnxin2pep); |
||||
|
|
||||
}; |
}; |
Loading…
Reference in new issue