Commit b171870a by rongkailun

【修改】数据格式调整

parent 989ae640
......@@ -154,7 +154,7 @@ public class PictureController extends AbstractController {
Page<PictureEntity> page = this.pictureService.selectPictureNewList(params,
new Page(params.getPage(),params.getLimit()));
PageUtils pageUtils = new PageUtils(page);
return R.ok().put("page", pageUtils);
return R.ok().put("data", pageUtils);
} catch (Exception e) {
log.error("pictureList error:", e);
return R.error(e.getMessage());
......@@ -169,7 +169,7 @@ public class PictureController extends AbstractController {
// @RequiresPermissions("generator:picture:info")
public R getDetail(@PathVariable("pictureid") Integer pictureid){
PictureEntity picture = pictureService.getById(pictureid);
return R.ok().put("picture", picture);
return R.ok().put("data", picture);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment