|
@@ -63,7 +63,7 @@ const ControllerContext = (data) => {
|
|
|
fc.push(
|
|
|
`import { CreateDTO_${name}, CreateVO_${name}, FetchVO_${name}, QueryDTO_${name}, QueryVO_${name}, UpdateDTO_${name}, UpdateVO_${name} } from '../interface/${name}.interface';`
|
|
|
);
|
|
|
- fc.push(`import { ApiResponse, ApiTags } from '@midwayjs/swagger';`);
|
|
|
+ fc.push(`import { ApiResponse, ApiTags, ApiQuery } from '@midwayjs/swagger';`);
|
|
|
fc.push(`import { Validate } from '@midwayjs/validate';`);
|
|
|
fc.push(`@ApiTags(['${name_zh}'])`);
|
|
|
fc.push(`@Controller('/${name}')`);
|