Documentation
¶
Index ¶
- type AcceptGroupApplyReq
- type AcceptGroupApplyResp
- type ChangeOwnerRequest
- type ChangeOwnerResponse
- type CreateGroupApplyReq
- type CreateGroupApplyResp
- type CreateGroupRequest
- type CreateGroupResponse
- type GeneralResponse
- type GetGroupApplyByIdReq
- type GetGroupApplysReq
- type GetGroupApplysResp
- type GetGroupInfoByConditionReq
- type GetGroupInfoByConditionResp
- type GetGroupInfoRequest
- type GetGroupInfoResponse
- type GetGroupListRequest
- type GetGroupListResponse
- type GetGroupMemberInfoRequest
- type GetGroupMemberInfoResponse
- type GetGroupMemberListRequest
- type GetGroupMemberListResponse
- type GetGroupPubInfoRequest
- type GetGroupPubInfoResponse
- type GetMuteListRequest
- type GetMuteListResponse
- type GroupApplyInfo
- type GroupDisbandRequest
- type GroupDisbandResponse
- type GroupExitRequest
- type GroupExitResponse
- type GroupInfo
- type GroupMember
- type GroupRemoveRequest
- type GroupRemoveResponse
- type InviteGroupMembersRequest
- type InviteGroupMembersResponse
- type JoinGroupReq
- type JoinGroupResp
- type RejectGroupApplyReq
- type RejectGroupApplyResp
- type SetAdminRequest
- type SetAdminResponse
- type UpdateGroupAvatarRequest
- type UpdateGroupAvatarResponse
- type UpdateGroupFriendTypeRequest
- type UpdateGroupFriendTypeResponse
- type UpdateGroupJoinTypeRequest
- type UpdateGroupJoinTypeResponse
- type UpdateGroupMemberMuteTimeRequest
- type UpdateGroupMemberMuteTimeResponse
- type UpdateGroupMemberNameRequest
- type UpdateGroupMemberNameResponse
- type UpdateGroupMuteTypeRequest
- type UpdateGroupMuteTypeResponse
- type UpdateGroupNameRequest
- type UpdateGroupNameResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptGroupApplyReq ¶
type AcceptGroupApplyReq struct {
// 审批 ID
ApplyId string `json:"applyId" binding:"required"`
// 群 ID
Id string `json:"id" binding:"required"`
PersonId string `json:"-"`
}
AcceptGroupApplyReq 接受加群审批请求
type AcceptGroupApplyResp ¶
type AcceptGroupApplyResp struct {
}
type ChangeOwnerRequest ¶
type ChangeOwnerResponse ¶
type ChangeOwnerResponse struct {
}
type CreateGroupApplyReq ¶
type CreateGroupApplyReq struct {
// 群 ID
Id string `json:"id,omitempty" binding:"required"`
// 申请备注
ApplyNote string `json:"applyNote,omitempty"`
PersonId string `json:"-"`
}
CreateGroupApplyReq 创建群审批请求
type CreateGroupRequest ¶
type CreateGroupRequest struct {
Name string `json:"name" form:"name"`
Avatar string `json:"avatar" form:"avatar"`
Introduce string `json:"introduce" form:"introduce"`
MemberIds []string `json:"memberIds" form:"memberIds"`
Owner GroupMember `json:"-"`
Members []GroupMember `json:"-"`
}
type CreateGroupResponse ¶
type CreateGroupResponse struct {
*GroupInfo
// 群成员
Members []GroupMember `json:"members" form:"members"`
}
type GeneralResponse ¶
type GetGroupApplyByIdReq ¶
type GetGroupApplyByIdReq struct {
// 审批 ID
ApplyId string `json:"applyId" binding:"required"`
// 群 ID
Id string `json:"id" binding:"required"`
PersonId string `json:"-"`
}
GetGroupApplyByIdReq 查询群审批请求
type GetGroupApplysReq ¶
type GetGroupApplysReq struct {
// 群 ID
Id string `json:"id" binding:"required"`
// 每页记录数
Count int32 `json:"count" binding:"required"`
// 当前审批记录数量
Offset int32 `json:"offset"`
PersonId string `json:"-"`
}
GetGroupApplysReq 查询群审批列表请求
type GetGroupApplysResp ¶
type GetGroupApplysResp struct {
GroupApplys []*GroupApplyInfo `json:"applys"`
}
GetGroupApplysResp 查询群审批响应
type GetGroupInfoByConditionResp ¶
type GetGroupInfoByConditionResp struct {
Groups []*GroupInfo `json:"groups"`
}
type GetGroupInfoRequest ¶
type GetGroupInfoResponse ¶
type GetGroupInfoResponse struct {
*GroupInfo
Members []*GroupMember `json:"members" form:"members"`
}
type GetGroupListRequest ¶
type GetGroupListRequest struct {
PersonId string `json:"-"`
}
type GetGroupListResponse ¶
type GetGroupListResponse struct {
Groups []*GroupInfo `json:"groups"`
}
type GetGroupMemberInfoResponse ¶
type GetGroupMemberInfoResponse struct {
*GroupMember
}
type GetGroupMemberListResponse ¶
type GetGroupMemberListResponse struct {
Id int64 `json:"id"`
// 如果同时填了 idStr, 则优先选择 idStr
IdStr string `json:"idStr"`
Members []*GroupMember `json:"members"`
}
type GetGroupPubInfoRequest ¶
type GetGroupPubInfoResponse ¶
type GetGroupPubInfoResponse struct {
*GroupInfo
}
type GetMuteListRequest ¶
type GetMuteListResponse ¶
type GetMuteListResponse struct {
Members []*GroupMember `json:"members"`
}
type GroupApplyInfo ¶
type GroupApplyInfo struct {
// 审批 ID
ApplyId string `json:"applyId,omitempty"`
// 群 ID
GroupId string `json:"id,omitempty"`
// 邀请人 ID, 空表示是自己主动申请的
InviterId string `json:"inviterId,omitempty"`
// 申请加入人 ID
MemberId string `json:"memberId,omitempty"`
// 申请备注
ApplyNote string `json:"applyNote,omitempty"`
// 审批人 ID
OperatorId string `json:"operatorId,omitempty"`
// 审批情况 0=待审批, 1=审批通过, 2=审批不通过, 10=审批忽略
ApplyStatus int32 `json:"applyStatus,omitempty"`
// 拒绝原因
RejectReason string `json:"rejectReason,omitempty"`
// 创建时间 ms
CreateTime int64 `json:"createTime,omitempty"`
// 修改时间 ms
UpdateTime int64 `json:"updateTime,omitempty"`
}
GroupApplyInfo 群审批信息
type GroupDisbandRequest ¶
type GroupDisbandResponse ¶
type GroupDisbandResponse struct {
}
type GroupExitRequest ¶
type GroupExitResponse ¶
type GroupExitResponse struct {
}
type GroupInfo ¶
type GroupInfo struct {
// 群 ID
Id int64 `json:"id" form:"id"`
IdStr string `json:"idStr"`
// 群显示的 ID
MarkId string `json:"markId" form:"markId"`
// 群名称 加密的
Name string `json:"name" form:"name"`
// 公开的群名称 不加密的
PublicName string `json:"publicName"`
// 头像 url
Avatar string `json:"avatar" form:"avatar"`
Introduce string `json:"introduce" form:"introduce"`
// 群主 信息
Owner *GroupMember `json:"owner" form:"owner"`
// 本人在群内的信息
Person *GroupMember `json:"person" form:"person"`
// 群人数
MemberNum int32 `json:"memberNum" form:"memberNum"`
// 群人数上限
Maximum int32 `json:"maximum" form:"maximum"`
// 群状态,0=正常 1=封禁 2=解散
Status int32 `json:"status" form:"status"`
// 群创建时间
CreateTime int64 `json:"createTime" form:"createTime"`
// 加群方式,0=无需审批(默认),1=禁止加群,群主和管理员邀请加群, 2=普通人邀请需要审批,群主和管理员直接加群
JoinType int32 `json:"joinType" form:"joinType"`
// 禁言, 0=全员可发言, 1=全员禁言(除群主和管理员)
MuteType int32 `json:"muteType" form:"muteType"`
// 加好友限制, 0=群内可加好友,1=群内禁止加好友
FriendType int32 `json:"friendType"`
// 群内当前被禁言的人数
MuteNum int32 `json:"muteNum"`
// 群内管理员数量
AdminNum int32 `json:"adminNum"`
//
AESKey string `json:"key"`
// 群类型 (0: 普通群, 1: 全员群, 2: 部门群)
GroupType int32 `json:"groupType"`
}
type GroupMember ¶
type GroupMember struct {
// 用户 ID
MemberId string `json:"memberId" form:"memberId"`
// 用户群昵称
MemberName string `json:"memberName" form:"memberName"`
// 用户角色,2=群主,1=管理员,0=群员,10=退群
MemberType int32 `json:"memberType" form:"memberType"`
// 该用户被禁言结束的时间 9223372036854775807=永久禁言
MemberMuteTime int64 `json:"memberMuteTime"`
}
type GroupRemoveRequest ¶
type GroupRemoveResponse ¶
type InviteGroupMembersRequest ¶
type InviteGroupMembersRequest struct {
Id int64 `json:"id" form:"id"`
// 如果同时填了 idStr, 则优先选择 idStr
IdStr string `json:"idStr"`
Inviter GroupMember `json:"-"`
NewMembers []GroupMember `json:"-"`
NewMemberIds []string `json:"newMemberIds" form:"newMemberIds" binding:"required"`
}
type JoinGroupReq ¶
type JoinGroupReq struct {
Id int64 `json:"id"`
IdStr string `json:"idStr"`
InviterId string `json:"inviterId"`
PersonId string `json:"-"`
}
JoinGroupReq 扫二维码加群
type JoinGroupResp ¶
type RejectGroupApplyReq ¶
type RejectGroupApplyReq struct {
// 审批 ID
ApplyId string `json:"applyId" binding:"required"`
// 群 ID
Id string `json:"id" binding:"required"`
// 拒绝原因
RejectReason string `json:"rejectReason"`
PersonId string `json:"-"`
}
RejectGroupApplyReq 拒绝加群审批请求
type RejectGroupApplyResp ¶
type RejectGroupApplyResp struct {
}
type SetAdminRequest ¶
type SetAdminResponse ¶
type SetAdminResponse struct {
}
type UpdateGroupAvatarResponse ¶
type UpdateGroupAvatarResponse struct {
}
type UpdateGroupFriendTypeResponse ¶
type UpdateGroupFriendTypeResponse struct {
}
type UpdateGroupJoinTypeResponse ¶
type UpdateGroupJoinTypeResponse struct {
}
type UpdateGroupMemberMuteTimeRequest ¶
type UpdateGroupMemberMuteTimeRequest struct {
// 群 ID
Id int64 `json:"id"`
// 如果同时填了 idStr, 则优先选择 idStr
IdStr string `json:"idStr"`
// 被禁言的群员 ID
MemberIds []string `json:"memberIds" binding:"required"`
// 禁言持续时间, 传9223372036854775807=永久禁言, 0=解除禁言
MuteTime int64 `json:"muteTime"`
PersonId string `json:"-"`
}
type UpdateGroupMemberMuteTimeResponse ¶
type UpdateGroupMemberMuteTimeResponse struct {
Members []*GroupMember `json:"members"`
}
type UpdateGroupMemberNameResponse ¶
type UpdateGroupMemberNameResponse struct {
}
type UpdateGroupMuteTypeResponse ¶
type UpdateGroupMuteTypeResponse struct {
}
type UpdateGroupNameRequest ¶
type UpdateGroupNameResponse ¶
type UpdateGroupNameResponse struct {
}
Click to show internal directories.
Click to hide internal directories.