| | |
| | | @PutMapping("banSpeech") |
| | | @ApiOperation(value = "禁言") |
| | | @ApiImplicitParam(name = "id", value = "群组id", required = true, dataType = "Integer") |
| | | public R setBanSpeech(@RequestParam("id") Integer id) { |
| | | return R.ok(groupUserService.update(new UpdateWrapper<GroupUser>().set("ban_speech",1).eq("user_id",id))); |
| | | public R setBanSpeech(@RequestParam("id") Integer id,@RequestParam("groupId")Integer groupId) { |
| | | return R.ok(groupUserService.update(new UpdateWrapper<GroupUser>().set("ban_speech",1).eq("user_id",id).eq("group_id",groupId))); |
| | | } |
| | | |
| | | @PutMapping("allowSpeech") |
| | | @ApiOperation(value = "允许发言") |
| | | @ApiImplicitParam(name = "id", value = "群组id", required = true, dataType = "Integer") |
| | | public R setAllowSpeech(@RequestParam("id") Integer id) { |
| | | return R.ok(groupUserService.update(new UpdateWrapper<GroupUser>().set("ban_speech",0).eq("user_id",id))); |
| | | public R setAllowSpeech(@RequestParam("id") Integer id,@RequestParam("groupId")Integer groupId) { |
| | | return R.ok(groupUserService.update(new UpdateWrapper<GroupUser>().set("ban_speech",0).eq("user_id",id).eq("group_id",groupId))); |
| | | } |
| | | |
| | | @PutMapping("banSpeechAll") |