|
@@ -32,14 +32,14 @@ public class GroupController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation(value = "根据组id获取组", httpMethod = "GET")
|
|
@ApiOperation(value = "根据组id获取组", httpMethod = "GET")
|
|
|
- @ApiImplicitParam(name = "groupId",dataType ="string", paramType = "param")
|
|
|
|
|
|
|
+ @ApiImplicitParam(name = "groupId",dataType ="string", paramType = "query")
|
|
|
@GetMapping
|
|
@GetMapping
|
|
|
public Response<GroupVO> getGroup(@RequestParam("groupId") Integer groupId){
|
|
public Response<GroupVO> getGroup(@RequestParam("groupId") Integer groupId){
|
|
|
return Response.buildSuccess(groupService.getGroup(groupId));
|
|
return Response.buildSuccess(groupService.getGroup(groupId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation(value = "根据组id获取组成员id列表", httpMethod = "GET")
|
|
@ApiOperation(value = "根据组id获取组成员id列表", httpMethod = "GET")
|
|
|
- @ApiImplicitParam(name = "groupId",dataType ="string", paramType = "param")
|
|
|
|
|
|
|
+ @ApiImplicitParam(name = "groupId",dataType ="string", paramType = "query")
|
|
|
@GetMapping("/members")
|
|
@GetMapping("/members")
|
|
|
public Response<List<Integer>> getGroupMemberIds(@RequestParam("groupId") Integer groupId){
|
|
public Response<List<Integer>> getGroupMemberIds(@RequestParam("groupId") Integer groupId){
|
|
|
return Response.buildSuccess(groupService.getGroupMemberIds(groupId));
|
|
return Response.buildSuccess(groupService.getGroupMemberIds(groupId));
|
|
@@ -47,7 +47,7 @@ public class GroupController {
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "创建组", httpMethod = "POST")
|
|
@ApiOperation(value = "创建组", httpMethod = "POST")
|
|
|
- @ApiImplicitParam(name = "userId",dataType ="string", paramType = "param")
|
|
|
|
|
|
|
+ @ApiImplicitParam(name = "name",dataType ="string", paramType = "query")
|
|
|
@PostMapping()
|
|
@PostMapping()
|
|
|
public Response<GroupVO> createGroup(@RequestParam("name")
|
|
public Response<GroupVO> createGroup(@RequestParam("name")
|
|
|
@Validated
|
|
@Validated
|
|
@@ -58,10 +58,9 @@ public class GroupController {
|
|
|
|
|
|
|
|
@ApiOperation(value = "添加组成员", httpMethod = "POST")
|
|
@ApiOperation(value = "添加组成员", httpMethod = "POST")
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "invitedUserId",dataType ="int", paramType = "param"),
|
|
|
|
|
- @ApiImplicitParam(name = "groupId",dataType ="int", paramType = "param")
|
|
|
|
|
|
|
+ @ApiImplicitParam(name = "invitedUserId",dataType ="int", paramType = "query"),
|
|
|
|
|
+ @ApiImplicitParam(name = "groupId",dataType ="int", paramType = "query")
|
|
|
})
|
|
})
|
|
|
-
|
|
|
|
|
@PostMapping("/members")
|
|
@PostMapping("/members")
|
|
|
public Response addMember(@RequestParam("invitedUserId") Integer invitedUserId,
|
|
public Response addMember(@RequestParam("invitedUserId") Integer invitedUserId,
|
|
|
@RequestParam("groupId") Integer groupId){
|
|
@RequestParam("groupId") Integer groupId){
|