瀏覽代碼

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}的控制器
  *