|
@@ -9,9 +9,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
<% if(isNotEmpty(superControllerClassPackage)){ %>
|
|
|
import ${superControllerClassPackage};
|
|
|
<% } %>
|
|
|
-<% if(isNotEmpty(controllerMethods.detail) || isNotEmpty(controllerMethods.delete)){ %>
|
|
|
-import base.model.com.jy.framework.BaseSelectDto;
|
|
|
-<% } %>
|
|
|
<% if(isNotEmpty(controllerMethods.create) || isNotEmpty(controllerMethods.update)){ %>
|
|
|
import ${entityPath}.dto.${table.entityName}Dto;
|
|
|
<% } %>
|
|
@@ -19,13 +16,14 @@ import ${entityPath}.dto.${table.entityName}Dto;
|
|
|
import ${entityPath}.dto.${table.entityName}SelectDto;
|
|
|
import ${entityPath}.vo.${table.entityName}Vo;
|
|
|
<% } %>
|
|
|
-<% if(isNotEmpty(controllerMethods.hasMethod)){ %>
|
|
|
import ${package.Service}.${table.serviceName};
|
|
|
+<% if(isNotEmpty(controllerMethods.detail) || isNotEmpty(controllerMethods.delete)){ %>
|
|
|
+import com.jy.framework.model.base.BaseSelectDto;
|
|
|
+<% } %>
|
|
|
import jakarta.annotation.Resource;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-<% } %>
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
<% if(isNotEmpty(controllerMethods.list)){ %>
|
|
@@ -44,11 +42,9 @@ import java.util.List;
|
|
|
@RestController
|
|
|
@RequestMapping("/${table.entityPath}")
|
|
|
public class ${table.controllerName} {
|
|
|
-<% if(isNotEmpty(controllerMethods.hasMethod)){ %>
|
|
|
|
|
|
@Resource
|
|
|
private ${table.serviceName} ${serviceInstanceName};
|
|
|
-<% } %>
|
|
|
|
|
|
<% if(isNotEmpty(controllerMethods.list)){ %>
|
|
|
/**
|