fix(task): 修改分页数据类型
This commit is contained in:
@@ -6,6 +6,7 @@ import com.jgy.xxs.core.http.resp.HttpResponse;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import mjkf.xinke.auth.core.util.StpLoginUserUtil;
|
import mjkf.xinke.auth.core.util.StpLoginUserUtil;
|
||||||
|
import mjkf.xinke.common.pojo.CommonResult;
|
||||||
import mjkf.xinke.main.common.http.FuHttpResponse;
|
import mjkf.xinke.main.common.http.FuHttpResponse;
|
||||||
import mjkf.xinke.main.model.db.MaterialTask;
|
import mjkf.xinke.main.model.db.MaterialTask;
|
||||||
import mjkf.xinke.main.model.vo.MaterialTaskCreateRequest;
|
import mjkf.xinke.main.model.vo.MaterialTaskCreateRequest;
|
||||||
@@ -32,7 +33,7 @@ public class MaterialTaskController {
|
|||||||
|
|
||||||
@ApiOperation("获取采集任务列表")
|
@ApiOperation("获取采集任务列表")
|
||||||
@GetMapping("/")
|
@GetMapping("/")
|
||||||
public HttpResponse list(
|
public CommonResult<Page<MaterialTask>> list(
|
||||||
@ApiParam("每页数量") @RequestParam(name = "limit", defaultValue = "10") Integer limit,
|
@ApiParam("每页数量") @RequestParam(name = "limit", defaultValue = "10") Integer limit,
|
||||||
@ApiParam("页码") @RequestParam(name = "page", defaultValue = "1") Integer page,
|
@ApiParam("页码") @RequestParam(name = "page", defaultValue = "1") Integer page,
|
||||||
@ApiParam("任务类型") Integer type,
|
@ApiParam("任务类型") Integer type,
|
||||||
@@ -47,7 +48,7 @@ public class MaterialTaskController {
|
|||||||
}
|
}
|
||||||
var result = materialTaskService.page(new Page<>(page, limit), query);
|
var result = materialTaskService.page(new Page<>(page, limit), query);
|
||||||
|
|
||||||
return FuHttpResponse.Builder().pageResponse(result).build();
|
return CommonResult.data(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("创建采集任务列表")
|
@ApiOperation("创建采集任务列表")
|
||||||
|
Reference in New Issue
Block a user