UNPKG

koa-typescript-sequlize-swagger

Version:

nodejs的后端模板,使用了koa,typescript,koa-swagger-decorator,zod等

10 lines 157 B
const hope={ code:200, msg:'响应成功', data:{} } const ctx={ msg:'你好' } // ctx属性赋值给hope console.log(Object.assign(hope, ctx));