|
@@ -60,7 +60,7 @@ const ControllerContext = (data) => {
|
|
|
fc.push(`import { Body, Controller, Del, Get, Inject, Param, Post, Query } from '@midwayjs/decorator';`);
|
|
|
fc.push(`import { BaseController } from 'free-midway-component';`);
|
|
|
fc.push(`import { ${prefix}Service } from '../service/${_.lowerFirst(name)}.service';`);
|
|
|
- fc.push(`import { CDTO, CVO, FVO,QDTO, QVO, UDTO, UVAO } from '../interface/${_.lowerFirst(name)}.interface';`);
|
|
|
+ fc.push(`import { CDTO_${name}, CVO_${name}, FVO_${name},QDTO_${name}, QVO_${name}, UDTO_${name}, UVAO_${name} } from '../interface/${_.lowerFirst(name)}.interface';`);
|
|
|
fc.push(`import { ApiResponse, ApiTags, ApiQuery } from '@midwayjs/swagger';`);
|
|
|
fc.push(`import { Validate } from '@midwayjs/validate';`);
|
|
|
fc.push(`@ApiTags(['${name_zh}'])`);
|