ソースを参照

controller添加api类引用

caixin 3 年 前
コミット
1f69713bbc
1 ファイル変更7 行追加0 行削除
  1. 7 0
      src/main/resources/generator/controller.ftl

+ 7 - 0
src/main/resources/generator/controller.ftl

@@ -6,9 +6,16 @@ import ${newBasePackage}.${moduleName}.service.${table.className}Service;
 import ${newBasePackage}.${moduleName}.service.dto.${table.className}Dto;
 import ${oldBasePackage}.common.web.AbstractController;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
+import java.util.List;
+
 /**
  * ${table.comment}的控制器
  *