Commit f76eb802 by rongkailun

【修改】政策法规接口返回格式调整

parent 3fcc8fb6
......@@ -53,7 +53,7 @@ public class PolicyController extends AbstractController {
public R info(@PathVariable("id") Integer id){
PolicyEntity policy = policyService.getById(id);
return R.ok().put("policy", policy);
return R.ok().put("data", policy);
}
/**
......@@ -168,7 +168,7 @@ public class PolicyController extends AbstractController {
// @RequiresPermissions("generator:indexcarouselmanage:pictureImageList")
public R getDetail(@PathVariable("id") Integer id){
PolicyEntity policy = policyService.getById(id);
return R.ok().put("policy", policy);
return R.ok().put("data", policy);
}
......
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