Commit 04f1ca89 by wnb0128

车家智能场景代码规范化--think.wang

1 parent 81dd7a09
......@@ -44,7 +44,9 @@ public class SceneTemplateController {
BeanUtils.copyProperties(templateRequest, request);
List<SmartSceneTemplate> sceneList = sceneTemplateService.getList(request);
PageInfo<SmartSceneTemplate> pageInfo = PageInfo.of(sceneList);
return R.ok().putPageData(pageInfo);
PageInfo<SceneTemplateResponse> responsePageInfo = new PageInfo<>();
BeanUtils.copyProperties(pageInfo, responsePageInfo);
return R.ok().putPageData(responsePageInfo);
}
@ResponseBody
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!