|
@@ -73,7 +73,7 @@ const ControllerContext = (data) => {
|
|
|
fc.push(`@Post('/') @Validate() @ApiResponse({ type: CVO_${name} })`);
|
|
|
fc.push(` async create(@Body() data: CDTO_${name}) {`);
|
|
|
fc.push(` const dbData = await this.service.create(data);`);
|
|
|
- fc.push(` const result = new CVO_activitys(dbData);`);
|
|
|
+ fc.push(` const result = new CVO_${name}(dbData);`);
|
|
|
fc.push(` return result;`);
|
|
|
fc.push(` }`);
|
|
|
// query
|
|
@@ -82,7 +82,7 @@ const ControllerContext = (data) => {
|
|
|
fc.push(` const list = await this.service.query(filter, { skip, limit });`);
|
|
|
fc.push(` const data = [];`);
|
|
|
fc.push(` for (const i of list) {`);
|
|
|
- fc.push(` const newData = new QVO_activitys(i);`);
|
|
|
+ fc.push(` const newData = new QVO_${name}(i);`);
|
|
|
fc.push(` data.push(newData);`);
|
|
|
fc.push(` }`);
|
|
|
fc.push(` const total = await this.service.count(filter);`);
|