|
|
|
@ -10,10 +10,7 @@ import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
|
@RestController
|
|
|
|
@ -26,14 +23,17 @@ public class KnowledgeManageController {
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "查询知识库分页")
|
|
|
|
|
@Parameters({
|
|
|
|
|
@Parameter(name = "status", description = "流转状态 为空查全部,1草稿 2待审批 3驳回 4通过 5删除 6已失效",required = false,allowEmptyValue = true, in = ParameterIn.QUERY),
|
|
|
|
|
@Parameter(name = "title", description = "标题,支持模糊",required = false, in = ParameterIn.QUERY),
|
|
|
|
|
@Parameter(name = "publishDeptName", description = "发文部门,支持模糊",required = true, in = ParameterIn.QUERY),
|
|
|
|
|
@Parameter(name = "status", description = "流转状态 为空查全部,1草稿 2待审批 3驳回 4通过 5删除 6已失效", in = ParameterIn.QUERY),
|
|
|
|
|
@Parameter(name = "title", description = "标题,支持模糊", in = ParameterIn.QUERY),
|
|
|
|
|
@Parameter(name = "publishDeptName", description = "发文部门,支持模糊", in = ParameterIn.QUERY),
|
|
|
|
|
@Parameter(name = "pageNum", description = "分页", in = ParameterIn.QUERY),
|
|
|
|
|
@Parameter(name = "pageSize", description = "分页", in = ParameterIn.QUERY)
|
|
|
|
|
})
|
|
|
|
|
@GetMapping("queryKnowledgePage")
|
|
|
|
|
public IPage<Knowledge> queryKnowledgePage(Integer status, String title, String publishDeptName, Integer pageNum, Integer pageSize) {
|
|
|
|
|
public IPage<Knowledge> queryKnowledgePage(@RequestParam(required = false) Integer status,
|
|
|
|
|
@RequestParam(required = false) String title,
|
|
|
|
|
@RequestParam(required = false) String publishDeptName,
|
|
|
|
|
Integer pageNum, Integer pageSize) {
|
|
|
|
|
return knowledgeManageService.queryKnowledgePage(status, title, publishDeptName, pageNum, pageSize);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|