分页查询

This commit is contained in:
yuejiajun 2025-09-30 14:15:11 +08:00
parent cfafe4574c
commit dd67acf9c1
6 changed files with 19 additions and 9 deletions

View File

@ -35,6 +35,12 @@ public class BaseDTO implements Serializable {
@Schema(description = "ID")
private String id;
/**
* 名称
*/
@Schema(description = "名称")
private String name;
/**
* 命名空间
*/

View File

@ -51,7 +51,13 @@ public class BaseEntity implements Serializable {
@Id(keyType = KeyType.Generator, value = KeyGenerators.uuid)
@Schema(description = "ID")
private String id;
/**
* 名称
*/
@Schema(description = "名称")
private String name;
/**
* 命名空间
*/

View File

@ -45,7 +45,6 @@ public class BaseVO implements Serializable {
/**
* 名称
*/
@DbIgnore
@Schema(description = "名称")
private String name;

View File

@ -189,7 +189,7 @@ public class FileParserController {
* @param queryDTO 查询封装对象
* @return 分页结果包装对象
*/
@GetMapping("/page")
@PostMapping("/page")
@Operation(summary = "分页查询文件记录", description = "分页查询文件记录列表")
public Wrapper<SearchResult<FileRecordVO>> pageList(
@Parameter(description = "文件记录QueryDTO数据", required = true)
@ -209,7 +209,7 @@ public class FileParserController {
* @param queryDTO 查询封装对象
* @return 文件记录列表包装对象
*/
@GetMapping("/options")
@PostMapping("/options")
@Operation(summary = "获取所有文件记录", description = "获取所有文件记录的列表")
public Wrapper<List<FileRecordVO>> options(
@Parameter(description = "文件记录QueryDTO数据", required = true)

View File

@ -134,7 +134,7 @@ public class MapperRuleController {
* @param queryDTO 查询封装对象
* @return 分页结果包装对象
*/
@GetMapping("/page")
@PostMapping("/page")
@Operation(summary = "分页查询映射规则", description = "分页查询映射规则列表")
public Wrapper<SearchResult<MapperRuleVO>> pageList(
@Parameter(description = "映射规则QueryDTO数据", required = true)
@ -153,7 +153,7 @@ public class MapperRuleController {
*
* @return 映射规则列表包装对象
*/
@GetMapping("/options")
@PostMapping("/options")
@Operation(summary = "获取所有映射规则", description = "获取所有映射规则的列表")
public Wrapper<List<MapperRuleVO>> options(
@Parameter(description = "映射规则QueryDTO数据", required = true)

View File

@ -134,7 +134,7 @@ public class ParseRuleController {
* @param queryDTO 查询封装对象
* @return 分页结果包装对象
*/
@GetMapping("/page")
@PostMapping("/page")
@Operation(summary = "分页查询解析规则", description = "分页查询解析规则列表")
public Wrapper<SearchResult<ParseRuleVO>> pageList(
@Parameter(description = "解析规则QueryDTO数据", required = true)
@ -154,7 +154,7 @@ public class ParseRuleController {
* @param queryDTO 查询封装对象
* @return 解析规则列表包装对象
*/
@GetMapping("/options")
@PostMapping("/options")
@Operation(summary = "获取所有解析规则", description = "获取所有解析规则的列表")
public Wrapper<List<ParseRuleVO>> options(
@Parameter(description = "解析规则QueryDTO数据", required = true)
@ -168,5 +168,4 @@ public class ParseRuleController {
}
}
}