lrf 2 anos atrás
pai
commit
52ae3cdeb2
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/public/ts-template.js

+ 1 - 1
app/public/ts-template.js

@@ -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}'])`);