|
@@ -2,6 +2,8 @@ package cn.cslg.pas.controller;
|
|
|
|
|
|
import cn.cslg.pas.common.core.base.Constants;
|
|
import cn.cslg.pas.common.core.base.Constants;
|
|
import cn.cslg.pas.common.model.dto.StructureAddNewDTO;
|
|
import cn.cslg.pas.common.model.dto.StructureAddNewDTO;
|
|
|
|
+import cn.cslg.pas.common.model.dto.StructureQueryPageDTO;
|
|
|
|
+import cn.cslg.pas.common.model.vo.StructureVO;
|
|
import cn.cslg.pas.common.utils.Response;
|
|
import cn.cslg.pas.common.utils.Response;
|
|
import cn.cslg.pas.exception.XiaoShiException;
|
|
import cn.cslg.pas.exception.XiaoShiException;
|
|
import cn.cslg.pas.service.IStructureService;
|
|
import cn.cslg.pas.service.IStructureService;
|
|
@@ -11,6 +13,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
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.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
@@ -47,4 +50,12 @@ public class StructureController {
|
|
return Response.error("请求参数为null");
|
|
return Response.error("请求参数为null");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Operation(summary = "分页查询架构树")
|
|
|
|
+ @PostMapping("/query")
|
|
|
|
+ public String query(@RequestBody StructureQueryPageDTO structureQueryPageDTO) {
|
|
|
|
+ log.info("开始处理【分页查询架构】的请求,请求参数为:{}", structureQueryPageDTO);
|
|
|
|
+ StructureVO queryResult = structureService.query(structureQueryPageDTO);
|
|
|
|
+ return Response.success(queryResult);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|