logic

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilteredMemberId

func FilteredMemberId(memberId string) (string, error)

func FilteredMemberIds

func FilteredMemberIds(memberIds []string) []string

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

UpdateGroupName 更新群名称

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL