Commit 88f46578 authored by zhangyingbin's avatar zhangyingbin

修改接口返回标准

parent 1a753e8b
...@@ -85,8 +85,8 @@ public class TzBaseEnterpriseInfoController { ...@@ -85,8 +85,8 @@ public class TzBaseEnterpriseInfoController {
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询") @ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public TzBaseEnterpriseInfo selectById(HttpServletRequest request, @PathVariable Long id){ public ResponseModel<TzBaseEnterpriseInfo> selectById(HttpServletRequest request, @PathVariable Long id){
return iTzBaseEnterpriseInfoService.getById(id); return ResponseHelper.buildResponse(iTzBaseEnterpriseInfoService.getById(id));
} }
...@@ -98,7 +98,7 @@ public class TzBaseEnterpriseInfoController { ...@@ -98,7 +98,7 @@ public class TzBaseEnterpriseInfoController {
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<TzBaseEnterpriseInfo> listPage(String pageNum,String pageSize, public ResponseModel<IPage<TzBaseEnterpriseInfo>> listPage(String pageNum,String pageSize,
TzBaseEnterpriseInfo tzBaseEnterpriseInfo){ TzBaseEnterpriseInfo tzBaseEnterpriseInfo){
Page<TzBaseEnterpriseInfo> pageBean; Page<TzBaseEnterpriseInfo> pageBean;
...@@ -135,7 +135,7 @@ public class TzBaseEnterpriseInfoController { ...@@ -135,7 +135,7 @@ public class TzBaseEnterpriseInfoController {
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize)); pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
} }
page = iTzBaseEnterpriseInfoService.page(pageBean, tzBaseEnterpriseInfoQueryWrapper); page = iTzBaseEnterpriseInfoService.page(pageBean, tzBaseEnterpriseInfoQueryWrapper);
return page; return ResponseHelper.buildResponse(page);
} }
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
......
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