|
@@ -84,7 +84,7 @@ public class TaRoomController extends BaseController {
|
84
|
84
|
@RequestMapping(value="/{plat}//taRoom/{id}", method= RequestMethod.DELETE)
|
85
|
85
|
@ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
|
86
|
86
|
public ResponseBean taRoomDelete(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
|
87
|
|
- @ApiParam("对象ID") @PathVariable Integer id) throws Exception{
|
|
87
|
+ @ApiParam("对象ID") @PathVariable String id) throws Exception{
|
88
|
88
|
if(iTaRoomService.removeById(id)){
|
89
|
89
|
return ResponseBean.success("success");
|
90
|
90
|
}else {
|
|
@@ -101,7 +101,7 @@ public class TaRoomController extends BaseController {
|
101
|
101
|
@RequestMapping(value="/{plat}/taRoom/{id}",method= RequestMethod.PUT)
|
102
|
102
|
@ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
|
103
|
103
|
public ResponseBean taRoomUpdate(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
|
104
|
|
- @ApiParam("对象ID") @PathVariable Integer id,
|
|
104
|
+ @ApiParam("对象ID") @PathVariable String id,
|
105
|
105
|
@ApiParam("更新内容") @RequestBody TaRoom taRoom) throws Exception{
|
106
|
106
|
|
107
|
107
|
if (iTaRoomService.updateById(taRoom)){
|
|
@@ -118,7 +118,7 @@ public class TaRoomController extends BaseController {
|
118
|
118
|
@RequestMapping(value="/{plat}/taRoom/{id}",method= RequestMethod.GET)
|
119
|
119
|
@ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
|
120
|
120
|
public ResponseBean taRoomGet(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
|
121
|
|
- @ApiParam("对象ID") @PathVariable Integer id) throws Exception{
|
|
121
|
+ @ApiParam("对象ID") @PathVariable String id) throws Exception{
|
122
|
122
|
return ResponseBean.success(iTaRoomService.getById(id));
|
123
|
123
|
}
|
124
|
124
|
}
|