Commit 46d0116b authored by taabe's avatar taabe

消防队伍接口修改

parent 5ab26ccd
...@@ -52,8 +52,9 @@ public class FireTeamController extends BaseController { ...@@ -52,8 +52,9 @@ public class FireTeamController extends BaseController {
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST) @RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增消防队伍", notes = "新增消防队伍") @ApiOperation(httpMethod = "POST", value = "新增消防队伍", notes = "新增消防队伍")
public boolean saveFireTeam(HttpServletRequest request, @RequestBody FireTeam fireTeam){ public ResponseModel saveFireTeam(HttpServletRequest request, @RequestBody FireTeam fireTeam){
return iFireTeamService.save(fireTeam); iFireTeamService.save(fireTeam);
return CommonResponseUtil.success();
} }
/** /**
...@@ -95,8 +96,8 @@ public class FireTeamController extends BaseController { ...@@ -95,8 +96,8 @@ public class FireTeamController extends BaseController {
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@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 FireTeam selectById(HttpServletRequest request, @PathVariable Long id){ public ResponseModel selectById(HttpServletRequest request, @PathVariable Long id){
return iFireTeamService.getById(id); return CommonResponseUtil.success(iFireTeamService.getById(id));
} }
......
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