增加接口

This commit is contained in:
shuo.wang
2025-04-11 21:39:19 +08:00
parent 1c419d10ae
commit c56cc12f62
3 changed files with 9 additions and 4 deletions

View File

@@ -29,7 +29,9 @@ public class PCWarehouseInfoController {
@GetMapping("/getAllAndActive")
@ApiOperation(value = "获取正新鸡排仓库配置")
public ResponseResult<List<WarehouseInfoDO>> getAllAndActive(@RequestParam("keyword")String keyword ) {
return ResponseResult.success(warehouseInfoService.getAllAndActive(keyword));
public ResponseResult<List<WarehouseInfoDO>> getAllAndActive(@RequestParam("keyword")String keyword ,
@RequestParam(value = "pageNum",defaultValue = "1")Integer pageNum,
@RequestParam(value = "pageSize",defaultValue = "10")Integer pageSize) {
return ResponseResult.success(warehouseInfoService.getAllAndActive(keyword,pageNum,pageSize));
}
}