Commit 88f46578 authored by zhangyingbin's avatar zhangyingbin

修改接口返回标准

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