Documentation ¶
Index ¶
- func FilteredMemberId(memberId string) (string, error)
- func FilteredMemberIds(memberIds []string) []string
- func NewRPCGroupInfo(do *biz.GroupInfo) *pb.GroupBizInfo
- func NewRPCGroupInfos(dos []*biz.GroupInfo) []*pb.GroupBizInfo
- func NewRPCGroupMemberInfo(do *biz.GroupMember) *pb.GroupMemberBizInfo
- func NewRPCGroupMemberInfos(dos []*biz.GroupMember) []*pb.GroupMemberBizInfo
- type ChangeOwnerLogic
- type CreateGroupLogic
- type ForceAddMemberLogic
- type ForceAddMembersLogic
- type ForceChangeOwnerLogic
- type ForceDeleteMemberLogic
- type ForceDeleteMembersLogic
- type ForceExitGroupsLogic
- type ForceJoinGroupsLogic
- type GetGroupListLogic
- type GetGroupMemberInfoLogic
- type GetGroupMemberListLogic
- type GetMuteListLogic
- type GetPriGroupInfoLogic
- type GetPubGroupInfoLogic
- type GroupDisbandLogic
- type GroupExitLogic
- type GroupRemoveLogic
- type InviteGroupMembersLogic
- type SetAdminLogic
- type UpdateGroupAvatarLogic
- type UpdateGroupFriendTypeLogic
- type UpdateGroupJoinTypeLogic
- type UpdateGroupMemberMuteTimeLogic
- type UpdateGroupMemberNameLogic
- type UpdateGroupMuteTypeLogic
- type UpdateGroupNameLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilteredMemberId ¶
func FilteredMemberIds ¶
func NewRPCGroupInfo ¶
func NewRPCGroupInfo(do *biz.GroupInfo) *pb.GroupBizInfo
func NewRPCGroupInfos ¶
func NewRPCGroupInfos(dos []*biz.GroupInfo) []*pb.GroupBizInfo
func NewRPCGroupMemberInfo ¶
func NewRPCGroupMemberInfo(do *biz.GroupMember) *pb.GroupMemberBizInfo
func NewRPCGroupMemberInfos ¶
func NewRPCGroupMemberInfos(dos []*biz.GroupMember) []*pb.GroupMemberBizInfo
Types ¶
type ChangeOwnerLogic ¶
type ChangeOwnerLogic struct {
// contains filtered or unexported fields
}
func NewChangeOwnerLogic ¶
func NewChangeOwnerLogic(ctx context.Context, svc *service.Service) *ChangeOwnerLogic
func (*ChangeOwnerLogic) ChangeOwner ¶
func (l *ChangeOwnerLogic) ChangeOwner(req *pb.ChangeOwnerReq) (*pb.ChangeOwnerResp, error)
ChangeOwner 退出群
type CreateGroupLogic ¶
type CreateGroupLogic struct {
// contains filtered or unexported fields
}
func NewCreateGroupLogic ¶
func NewCreateGroupLogic(ctx context.Context, svc *service.Service) *CreateGroupLogic
func (*CreateGroupLogic) CreateGroup ¶
func (l *CreateGroupLogic) CreateGroup(req *pb.CreateGroupReq) (*pb.CreateGroupResp, error)
CreateGroup 创建群聊
type ForceAddMemberLogic ¶
type ForceAddMemberLogic struct {
// contains filtered or unexported fields
}
func NewForceAddMemberLogic ¶
func NewForceAddMemberLogic(ctx context.Context, svc *service.Service) *ForceAddMemberLogic
func (*ForceAddMemberLogic) ForceAddMember ¶
func (l *ForceAddMemberLogic) ForceAddMember(req *pb.ForceAddMemberReq) (*pb.ForceAddMemberResp, error)
ForceAddMember 多个人加入一个群 无视操作者是否在群里, 是否有管理权限, 群人数是否已满 强行拉 member 进群
type ForceAddMembersLogic ¶
type ForceAddMembersLogic struct {
// contains filtered or unexported fields
}
func NewForceAddMembersLogic ¶
func NewForceAddMembersLogic(ctx context.Context, svc *service.Service) *ForceAddMembersLogic
func (*ForceAddMembersLogic) ForceAddMembers ¶
func (l *ForceAddMembersLogic) ForceAddMembers(req *pb.ForceAddMembersReq) (*pb.ForceAddMembersResp, error)
ForceAddMembers 多个人加入一个群 无视操作者是否在群里, 是否有管理权限, 群人数是否已满 强行拉 member 进群
type ForceChangeOwnerLogic ¶
type ForceChangeOwnerLogic struct {
// contains filtered or unexported fields
}
func NewForceChangeOwnerLogic ¶
func NewForceChangeOwnerLogic(ctx context.Context, svc *service.Service) *ForceChangeOwnerLogic
func (*ForceChangeOwnerLogic) ForceChangeOwner ¶
func (l *ForceChangeOwnerLogic) ForceChangeOwner(req *pb.ForceChangeOwnerReq) (*pb.ForceChangeOwnerResp, error)
ForceChangeOwner .
type ForceDeleteMemberLogic ¶
type ForceDeleteMemberLogic struct {
// contains filtered or unexported fields
}
func NewForceDeleteMemberLogic ¶
func NewForceDeleteMemberLogic(ctx context.Context, svc *service.Service) *ForceDeleteMemberLogic
func (*ForceDeleteMemberLogic) ForceDeleteMember ¶
func (l *ForceDeleteMemberLogic) ForceDeleteMember(req *pb.ForceDeleteMemberReq) (*pb.ForceDeleteMemberResp, error)
ForceDeleteMember 一个人退出一个群
type ForceDeleteMembersLogic ¶
type ForceDeleteMembersLogic struct {
// contains filtered or unexported fields
}
func NewForceDeleteMembersLogic ¶
func NewForceDeleteMembersLogic(ctx context.Context, svc *service.Service) *ForceDeleteMembersLogic
func (*ForceDeleteMembersLogic) ForceDeleteMembers ¶
func (l *ForceDeleteMembersLogic) ForceDeleteMembers(req *pb.ForceDeleteMembersReq) (*pb.ForceDeleteMembersResp, error)
ForceDeleteMembers 多个人退出同一个群
type ForceExitGroupsLogic ¶
type ForceExitGroupsLogic struct {
// contains filtered or unexported fields
}
func NewForceExitGroupsLogic ¶
func NewForceExitGroupsLogic(ctx context.Context, svc *service.Service) *ForceExitGroupsLogic
func (*ForceExitGroupsLogic) ForceExitGroups ¶
func (l *ForceExitGroupsLogic) ForceExitGroups(req *pb.ForceExitGroupsReq) (*pb.ForceExitGroupsResp, error)
ForceExitGroups . todo: 没有好的想法 相当于多次 DeleteMember
type ForceJoinGroupsLogic ¶
type ForceJoinGroupsLogic struct {
// contains filtered or unexported fields
}
func NewForceJoinGroupsLogic ¶
func NewForceJoinGroupsLogic(ctx context.Context, svc *service.Service) *ForceJoinGroupsLogic
func (*ForceJoinGroupsLogic) ForceJoinGroups ¶
func (l *ForceJoinGroupsLogic) ForceJoinGroups(req *pb.ForceJoinGroupsReq) (*pb.ForceJoinGroupsResp, error)
ForceJoinGroups 一个人加入多个群 相当于多次 AddMember
type GetGroupListLogic ¶
type GetGroupListLogic struct {
// contains filtered or unexported fields
}
func NewGetGroupListLogic ¶
func NewGetGroupListLogic(ctx context.Context, svc *service.Service) *GetGroupListLogic
func (*GetGroupListLogic) GetGroupList ¶
func (l *GetGroupListLogic) GetGroupList(req *pb.GetGroupListReq) (*pb.GetGroupListResp, error)
GetGroupList 查询加入的群列表
type GetGroupMemberInfoLogic ¶
type GetGroupMemberInfoLogic struct {
// contains filtered or unexported fields
}
func NewGetGroupMemberInfoLogic ¶
func NewGetGroupMemberInfoLogic(ctx context.Context, svc *service.Service) *GetGroupMemberInfoLogic
func (*GetGroupMemberInfoLogic) GetGroupMemberInfo ¶
func (l *GetGroupMemberInfoLogic) GetGroupMemberInfo(req *pb.GetGroupMemberInfoReq) (*pb.GetGroupMemberInfoResp, error)
GetGroupMemberInfo 查询一个人的信息
type GetGroupMemberListLogic ¶
type GetGroupMemberListLogic struct {
// contains filtered or unexported fields
}
func NewGetGroupMemberListLogic ¶
func NewGetGroupMemberListLogic(ctx context.Context, svc *service.Service) *GetGroupMemberListLogic
func (*GetGroupMemberListLogic) GetGroupMemberList ¶
func (l *GetGroupMemberListLogic) GetGroupMemberList(req *pb.GetGroupMemberListReq) (*pb.GetGroupMemberListResp, error)
GetGroupMemberList 查询群成员列表
type GetMuteListLogic ¶
type GetMuteListLogic struct {
// contains filtered or unexported fields
}
func NewGetMuteListLogic ¶
func NewGetMuteListLogic(ctx context.Context, svc *service.Service) *GetMuteListLogic
func (*GetMuteListLogic) GetMuteList ¶
func (l *GetMuteListLogic) GetMuteList(req *pb.GetMuteListReq) (*pb.GetMuteListResp, error)
GetMuteList 查询群禁言列表
type GetPriGroupInfoLogic ¶
type GetPriGroupInfoLogic struct {
// contains filtered or unexported fields
}
func NewGetPriGroupInfoLogic ¶
func NewGetPriGroupInfoLogic(ctx context.Context, svc *service.Service) *GetPriGroupInfoLogic
func (*GetPriGroupInfoLogic) GetPriGroupInfo ¶
func (l *GetPriGroupInfoLogic) GetPriGroupInfo(req *pb.GetPriGroupInfoReq) (*pb.GetPriGroupInfoResp, error)
GetPriGroupInfo 查询群全部信息
type GetPubGroupInfoLogic ¶
type GetPubGroupInfoLogic struct {
// contains filtered or unexported fields
}
func NewGetPubGroupInfoLogic ¶
func NewGetPubGroupInfoLogic(ctx context.Context, svc *service.Service) *GetPubGroupInfoLogic
func (*GetPubGroupInfoLogic) GetPubGroupInfo ¶
func (l *GetPubGroupInfoLogic) GetPubGroupInfo(req *pb.GetPubGroupInfoReq) (*pb.GetPubGroupInfoResp, error)
GetPubGroupInfo 查询群公开信息
type GroupDisbandLogic ¶
type GroupDisbandLogic struct {
// contains filtered or unexported fields
}
func NewGroupDisbandLogic ¶
func NewGroupDisbandLogic(ctx context.Context, svc *service.Service) *GroupDisbandLogic
func (*GroupDisbandLogic) GroupDisband ¶
func (l *GroupDisbandLogic) GroupDisband(req *pb.GroupDisbandReq) (*pb.GroupDisbandResp, error)
GroupDisband 解散群
type GroupExitLogic ¶
type GroupExitLogic struct {
// contains filtered or unexported fields
}
func NewGroupExitLogic ¶
func NewGroupExitLogic(ctx context.Context, svc *service.Service) *GroupExitLogic
func (*GroupExitLogic) GroupExit ¶
func (l *GroupExitLogic) GroupExit(req *pb.GroupExitReq) (*pb.GroupExitResp, error)
GroupExit 退出群
type GroupRemoveLogic ¶
type GroupRemoveLogic struct {
// contains filtered or unexported fields
}
func NewGroupRemoveLogic ¶
func NewGroupRemoveLogic(ctx context.Context, svc *service.Service) *GroupRemoveLogic
func (*GroupRemoveLogic) GroupRemove ¶
func (l *GroupRemoveLogic) GroupRemove(req *pb.GroupRemoveReq) (*pb.GroupRemoveResp, error)
GroupRemove 踢人
type InviteGroupMembersLogic ¶
type InviteGroupMembersLogic struct {
// contains filtered or unexported fields
}
func NewInviteGroupMembersLogic ¶
func NewInviteGroupMembersLogic(ctx context.Context, svc *service.Service) *InviteGroupMembersLogic
func (*InviteGroupMembersLogic) InviteGroupMembers ¶
func (l *InviteGroupMembersLogic) InviteGroupMembers(req *pb.InviteGroupMembersReq) (*pb.InviteGroupMembersResp, error)
InviteGroupMembers 邀请新成员
type SetAdminLogic ¶
type SetAdminLogic struct {
// contains filtered or unexported fields
}
func NewSetAdminLogic ¶
func NewSetAdminLogic(ctx context.Context, svc *service.Service) *SetAdminLogic
func (*SetAdminLogic) SetAdmin ¶
func (l *SetAdminLogic) SetAdmin(req *pb.SetAdminReq) (*pb.SetAdminResp, error)
SetAdmin 设置管理员
type UpdateGroupAvatarLogic ¶
type UpdateGroupAvatarLogic struct {
// contains filtered or unexported fields
}
func NewUpdateGroupAvatarLogic ¶
func NewUpdateGroupAvatarLogic(ctx context.Context, svc *service.Service) *UpdateGroupAvatarLogic
func (*UpdateGroupAvatarLogic) UpdateGroupAvatar ¶
func (l *UpdateGroupAvatarLogic) UpdateGroupAvatar(req *pb.UpdateGroupAvatarReq) (*pb.UpdateGroupAvatarResp, error)
UpdateGroupAvatar 更新群头像
type UpdateGroupFriendTypeLogic ¶
type UpdateGroupFriendTypeLogic struct {
// contains filtered or unexported fields
}
func NewUpdateGroupFriendTypeLogic ¶
func NewUpdateGroupFriendTypeLogic(ctx context.Context, svc *service.Service) *UpdateGroupFriendTypeLogic
func (*UpdateGroupFriendTypeLogic) UpdateGroupFriendType ¶
func (l *UpdateGroupFriendTypeLogic) UpdateGroupFriendType(req *pb.UpdateGroupFriendTypeReq) (*pb.UpdateGroupFriendTypeResp, error)
UpdateGroupFriendType 更新群内加好友设置
type UpdateGroupJoinTypeLogic ¶
type UpdateGroupJoinTypeLogic struct {
// contains filtered or unexported fields
}
func NewUpdateGroupJoinTypeLogic ¶
func NewUpdateGroupJoinTypeLogic(ctx context.Context, svc *service.Service) *UpdateGroupJoinTypeLogic
func (*UpdateGroupJoinTypeLogic) UpdateGroupJoinType ¶
func (l *UpdateGroupJoinTypeLogic) UpdateGroupJoinType(req *pb.UpdateGroupJoinTypeReq) (*pb.UpdateGroupJoinTypeResp, error)
UpdateGroupJoinType 更新加群设置
type UpdateGroupMemberMuteTimeLogic ¶
type UpdateGroupMemberMuteTimeLogic struct {
// contains filtered or unexported fields
}
func NewUpdateGroupMemberMuteTimeLogic ¶
func NewUpdateGroupMemberMuteTimeLogic(ctx context.Context, svc *service.Service) *UpdateGroupMemberMuteTimeLogic
func (*UpdateGroupMemberMuteTimeLogic) UpdateGroupMemberMuteTime ¶
func (l *UpdateGroupMemberMuteTimeLogic) UpdateGroupMemberMuteTime(req *pb.UpdateGroupMemberMuteTimeReq) (*pb.UpdateGroupMemberMuteTimeResp, error)
UpdateGroupMemberMuteTime 更新群成员禁言时间
type UpdateGroupMemberNameLogic ¶
type UpdateGroupMemberNameLogic struct {
// contains filtered or unexported fields
}
func NewUpdateGroupMemberNameLogic ¶
func NewUpdateGroupMemberNameLogic(ctx context.Context, svc *service.Service) *UpdateGroupMemberNameLogic
func (*UpdateGroupMemberNameLogic) UpdateGroupMemberName ¶
func (l *UpdateGroupMemberNameLogic) UpdateGroupMemberName(req *pb.UpdateGroupMemberNameReq) (*pb.UpdateGroupMemberNameResp, error)
UpdateGroupMemberName 更新群成员群昵称
type UpdateGroupMuteTypeLogic ¶
type UpdateGroupMuteTypeLogic struct {
// contains filtered or unexported fields
}
func NewUpdateGroupMuteTypeLogic ¶
func NewUpdateGroupMuteTypeLogic(ctx context.Context, svc *service.Service) *UpdateGroupMuteTypeLogic
func (*UpdateGroupMuteTypeLogic) UpdateGroupMuteType ¶
func (l *UpdateGroupMuteTypeLogic) UpdateGroupMuteType(req *pb.UpdateGroupMuteTypeReq) (*pb.UpdateGroupMuteTypeResp, error)
UpdateGroupMuteType 更新群内禁言设置
type UpdateGroupNameLogic ¶
type UpdateGroupNameLogic struct {
// contains filtered or unexported fields
}
func NewUpdateGroupNameLogic ¶
func NewUpdateGroupNameLogic(ctx context.Context, svc *service.Service) *UpdateGroupNameLogic
func (*UpdateGroupNameLogic) UpdateGroupName ¶
func (l *UpdateGroupNameLogic) UpdateGroupName(req *pb.UpdateGroupNameReq) (*pb.UpdateGroupNameResp, error)
UpdateGroupName 更新群名称
Source Files ¶
- change_owner.go
- create_group.go
- force_add_member.go
- force_add_members.go
- force_change_owner.go
- force_delete_member.go
- force_delete_members.go
- force_exit_groups.go
- force_join_groups.go
- get_group_list.go
- get_group_member_info.go
- get_group_member_list.go
- get_mute_list.go
- get_pri_group_info.go
- get_pub_group_info.go
- group_disband.go
- group_exit.go
- group_remove.go
- invite_group_members.go
- set_admin.go
- update_group_avatar.go
- update_group_friend_type.go
- update_group_join_type.go
- update_group_member_mute_time.go
- update_group_member_name.go
- update_group_mute_type.go
- update_group_name.go
- util.go