巴林闲侠
2 years ago
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||
'use strict'; |
|||
|
|||
async function add (ctx) { |
|||
try { |
|||
const { models } = ctx.fs.dc; |
|||
|
|||
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 = { |
|||
add |
|||
}; |
Loading…
Reference in new issue