Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrGroupNotExist = errors.New("the group is not exist") ErrGroupMemberNotExist = errors.New("the member is not exist") )
Functions ¶
This section is empty.
Types ¶
type GroupApply ¶
type GroupApply struct { // 审批 ID Id int64 // 群 ID GroupId int64 // 邀请人 ID, 空表示是自己主动申请的 InviterId string // 申请加入人 ID MemberId string // 申请备注 ApplyNote string // 审批人 ID OperatorId string // 审批情况 0=待审批, 1=审批通过, 2=审批不通过, 10=审批忽略 ApplyStatus int32 // 拒绝原因 RejectReason string // 创建时间 ms CreateTime int64 // 修改时间 ms UpdateTime int64 }
func ConvertGroupApply ¶
func ConvertGroupApply(res map[string]string) *GroupApply
func (*GroupApply) ToBiz ¶
func (a *GroupApply) ToBiz() *biz.GroupApplyBiz
type GroupInfo ¶
type GroupInfo struct { GroupId int64 `json:"groupId" form:"groupId"` GroupMarkId string `json:"groupMarkId" form:"groupMarkId"` GroupName string `json:"groupName" form:"groupName"` GroupAvatar string `json:"groupAvatar" form:"groupAvatar"` // 群人数 GroupMemberNum int32 `json:"groupMemberNum" form:"groupMemberNum"` // 群人数上限 GroupMaximum int32 `json:"groupMaximum" form:"groupMaximum"` GroupIntroduce string `json:"groupIntroduce" form:"groupIntroduce"` // 群状态,0=正常 1=封禁 2=解散 GroupStatus int32 `json:"groupStatus" form:"groupStatus"` GroupOwnerId string `json:"groupOwnerId" form:"groupOwnerId"` GroupCreateTime int64 `json:"groupCreateTime" form:"groupCreateTime"` GroupUpdateTime int64 `json:"groupUpdateTime" form:"groupUpdateTime"` // 加群方式,0=无需审批(默认),1=禁止加群,群主和管理员邀请加群, 2=普通人邀请需要审批,群主和管理员直接加群 GroupJoinType int32 `json:"groupJoinType" form:"groupJoinType"` // 禁言, 0=全员可发言, 1=全员禁言(除群主和管理员) GroupMuteType int32 `json:"groupMuteType" form:"groupMuteType"` // 加好友限制, 0=群内可加好友,1=群内禁止加好友 GroupFriendType int32 // GroupAESKey string // GroupPubName string // 群类型 (0: 普通群, 1: 全员群, 2: 部门群) GroupType int32 }
func ConvertGroupInfo ¶
func ConvertGroupInfos ¶
type GroupMember ¶
type GroupMember struct { GroupId int64 `json:"groupId" form:"groupId"` GroupMemberId string `json:"groupMemberId" form:"groupMemberId"` GroupMemberName string `json:"groupMemberName" form:"groupMemberName"` // 用户角色,2=群主,1=管理员,0=群员,10=退群 GroupMemberType int32 `json:"groupMemberType" form:"groupMemberType"` GroupMemberJoinTime int64 `json:"groupMemberJoinTime" form:"groupMemberJoinTime"` GroupMemberUpdateTime int64 `json:"groupMemberUpdateTime" form:"groupMemberUpdateTime"` }
func ConvertGroupMember ¶
func ConvertGroupMember(res map[string]string) *GroupMember
func (*GroupMember) ToBiz ¶
func (m *GroupMember) ToBiz() *biz.GroupMember
type GroupMemberMute ¶
type GroupMemberMute struct { GroupId int64 GroupMemberId string // 该用户被禁言结束的时间 9223372036854775807=永久禁言 GroupMemberMuteTime int64 GroupMemberMuteUpdateTime int64 }
func ConvertGroupMemberMute ¶
func ConvertGroupMemberMute(res map[string]string) *GroupMemberMute
type GroupMemberWithMute ¶
type GroupMemberWithMute struct { GroupId int64 GroupMemberId string GroupMemberName string GroupMemberType int32 GroupMemberMuteTime int64 GroupMemberJoinTime int64 }
func ConvertGroupMemberWithMute ¶
func ConvertGroupMemberWithMute(res map[string]string) *GroupMemberWithMute
func (*GroupMemberWithMute) ToBiz ¶
func (m *GroupMemberWithMute) ToBiz() *biz.GroupMember
Click to show internal directories.
Click to hide internal directories.