修改查询时入参方式

This commit is contained in:
gaoxiong 2025-05-06 22:37:02 +08:00
parent ca87787784
commit 47a3e7e764
2 changed files with 4 additions and 4 deletions

View File

@ -33,13 +33,13 @@ public class DefectController {
@ApiOperation(value = "分页查询缺陷记录列表", httpMethod = "GET")
@GetMapping("/page")
public PageResult<DefectResp> page(@RequestBody DefectListReq req) {
public PageResult<DefectResp> page(DefectListReq req) {
return PageResult.ok(defectService.page(req));
}
@ApiOperation(value = "查询缺陷记录列表", httpMethod = "GET")
@GetMapping("/list")
public Result<List<DefectResp>> list(@RequestBody DefectListReq req) {
public Result<List<DefectResp>> list(DefectListReq req) {
return Result.ok(defectService.list(req));
}

View File

@ -32,13 +32,13 @@ public class ImageController {
@ApiOperation(value = "分页查询图像列表", httpMethod = "GET")
@GetMapping("/page")
public PageResult<ImageListResp> page(@RequestBody ImageListReq req) {
public PageResult<ImageListResp> page(ImageListReq req) {
return PageResult.ok(imageService.page(req));
}
@ApiOperation(value = "查询图像列表", httpMethod = "GET")
@GetMapping("/list")
public Result<List<ImageListResp>> list(@RequestBody ImageListReq req){
public Result<List<ImageListResp>> list(ImageListReq req){
return Result.ok(imageService.list(req));
}