@Validated
public interface GroupService
Modifier and Type | Method and Description |
---|---|
Long |
creatGroup(@NotBlank @Length(max=40) String groupName,
Long creatorId,
@NotNull UserIdentityEnum userIdentity)
创建一个群组
|
Long |
deleteOneGroup(Long userId,
Long groupId)
解散一个群组
|
List<GroupEnt> |
findNameGroup(@NotBlank @Length(min=1,max=10) String groupNamePrefix,
Integer pageNum,
Integer pageSize)
模糊查询群组列表
|
UserEnt |
getOneGroupFriendInfo(Long userId,
Long friendId,
Long groupId)
查询群组中的某位用户的个人信息
|
UserGroupInfo |
getUserGroupInfo(Long userId,
Long groupId)
获取用户在某群组中的成员信息(一般用于检查用户是否在该群组中)
|
List<UserGroupInfo> |
listGroupLikePrefixNameAboutUser(Long userId,
@NotBlank @Length(max=40,min=1) String prefix,
Integer pageNum,
Integer pageSize)
查询符合前缀规则的用户已经加入的群组
|
List<UserGroupInfo> |
listUserGroupInformationAboutUser(Long userId,
Integer pageNum,
Integer pageSize)
获取用户加入的群组列表,分页显示
|
List<UserGroupInfo> |
listUserInfoInGroup(Long userId,
Long groupId,
Integer pageNum,
Integer pageSize)
获取某一群组内的成员信息
|
List<UserGroupInfo> |
listUserInfoInGroupWithoutPage(Long userId,
Long groupId)
获取某一群组内的成员信息
|
void |
updateGroupAuthWay(Long userId,
Long groupId,
@NotNull GroupJoinAuthEnum authEnum)
用户修改群审批方式
|
String |
updateGroupName(Long userId,
Long groupId,
@NotBlank @Length(max=40) String newName)
修改群组名称
|
Long creatGroup(@NotBlank @Length(max=40) @NotBlank @Length(max=40) String groupName, Long creatorId, @NotNull @NotNull UserIdentityEnum userIdentity)
groupName
- 群名称creatorId
- 创建者IduserIdentity
- 用户角色List<UserGroupInfo> listUserGroupInformationAboutUser(Long userId, Integer pageNum, Integer pageSize)
userId
- 用户IdpageNum
- 页码pageSize
- 页容量List<UserGroupInfo> listUserInfoInGroup(Long userId, Long groupId, Integer pageNum, Integer pageSize)
userId
- 用户IdgroupId
- 群组IdpageNum
- 页码号pageSize
- 页容量List<UserGroupInfo> listUserInfoInGroupWithoutPage(Long userId, Long groupId)
userId
- 用户IdgroupId
- 群组IdString updateGroupName(Long userId, Long groupId, @NotBlank @Length(max=40) @NotBlank @Length(max=40) String newName)
userId
- 用户IdgroupId
- 群组IdnewName
- 群组新名称Long deleteOneGroup(Long userId, Long groupId)
userId
- 用户IdgroupId
- 群组IdList<GroupEnt> findNameGroup(@NotBlank @Length(min=1,max=10) @NotBlank @Length(min=1,max=10) String groupNamePrefix, Integer pageNum, Integer pageSize)
pageNum
- 页码号pageSize
- 页容量groupNamePrefix
- 群名称前缀UserGroupInfo getUserGroupInfo(Long userId, Long groupId)
userId
- 用户IdgroupId
- 群组Idvoid updateGroupAuthWay(Long userId, Long groupId, @NotNull @NotNull GroupJoinAuthEnum authEnum)
userId
- 操作用户IdgroupId
- 群组IdauthEnum
- 默认审批方式List<UserGroupInfo> listGroupLikePrefixNameAboutUser(Long userId, @NotBlank @Length(max=40,min=1) @NotBlank @Length(max=40,min=1) String prefix, Integer pageNum, Integer pageSize)
userId
- 用户Idprefix
- 模糊查询前缀pageNum
- 页码号pageSize
- 页容量Copyright © 2022. All rights reserved.