Documentation
¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
- type AcceptGroupApplyReq
- type AcceptGroupApplyResp
- type ChangeOwnerReq
- type ChangeOwnerResp
- type CreateGroupApplyReq
- type CreateGroupApplyResp
- type CreateGroupReq
- type CreateGroupResp
- type GeneralResp
- type GetGroupApplyByIdReq
- type GetGroupApplysReq
- type GetGroupApplysResp
- type GetGroupInfoByConditionReq
- type GetGroupInfoByConditionResp
- type GetGroupInfoReq
- type GetGroupInfoResp
- type GetGroupListReq
- type GetGroupListResp
- type GetGroupMemberInfoReq
- type GetGroupMemberInfoResp
- type GetGroupMemberListReq
- type GetGroupMemberListResp
- type GetGroupPubInfoReq
- type GetGroupPubInfoResp
- type GetMuteListReq
- type GetMuteListResp
- type GroupApplyInfo
- type GroupDisbandReq
- type GroupDisbandResp
- type GroupExitReq
- type GroupExitResp
- type GroupInfo
- type GroupMember
- type GroupRemoveReq
- type GroupRemoveResp
- type Hello
- type InviteGroupMembersReq
- type InviteGroupMembersResp
- type JoinGroupReq
- type JoinGroupResp
- type RejectGroupApplyReq
- type RejectGroupApplyResp
- type SetAdminReq
- type SetAdminResp
- type UpdateGroupAvatarReq
- type UpdateGroupAvatarResp
- type UpdateGroupFriendTypeReq
- type UpdateGroupFriendTypeResp
- type UpdateGroupJoinTypeReq
- type UpdateGroupJoinTypeResp
- type UpdateGroupMemberMuteTimeReq
- type UpdateGroupMemberMuteTimeResp
- type UpdateGroupMemberNameReq
- type UpdateGroupMemberNameResp
- type UpdateGroupMuteTypeReq
- type UpdateGroupMuteTypeResp
- type UpdateGroupNameReq
- type UpdateGroupNameResp
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 ChangeOwnerReq ¶
type ChangeOwnerResp ¶
type ChangeOwnerResp struct {
}
type CreateGroupApplyReq ¶
type CreateGroupApplyReq struct {
// 群 ID
Id string `json:"id,omitempty" binding:"required"`
// 申请备注
ApplyNote string `json:"applyNote,omitempty"`
PersonId string `json:"-"`
}
CreateGroupApplyReq 创建群审批请求
type CreateGroupReq ¶
type CreateGroupResp ¶
type CreateGroupResp struct {
*GroupInfo
// 群成员
Members []*GroupMember `json:"members" form:"members"`
}
type GeneralResp ¶
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 GetGroupInfoReq ¶
type GetGroupInfoResp ¶
type GetGroupInfoResp struct {
*GroupInfo
Members []*GroupMember `json:"members" form:"members"`
}
type GetGroupListReq ¶
type GetGroupListReq struct {
PersonId string `json:"-"`
}
type GetGroupListResp ¶
type GetGroupListResp struct {
Groups []*GroupInfo `json:"groups"`
}
type GetGroupMemberInfoReq ¶
type GetGroupMemberInfoResp ¶
type GetGroupMemberInfoResp struct {
*GroupMember
}
type GetGroupMemberListReq ¶
type GetGroupMemberListResp ¶
type GetGroupMemberListResp struct {
Id int64 `json:"id"`
// 如果同时填了 idStr, 则优先选择 idStr
IdStr string `json:"idStr"`
Members []*GroupMember `json:"members"`
}
type GetGroupPubInfoReq ¶
type GetGroupPubInfoResp ¶
type GetGroupPubInfoResp struct {
*GroupInfo
}
type GetMuteListReq ¶
type GetMuteListResp ¶
type GetMuteListResp 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 GroupDisbandReq ¶
type GroupDisbandResp ¶
type GroupDisbandResp struct {
}
type GroupExitReq ¶
type GroupExitResp ¶
type GroupExitResp 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 GroupRemoveReq ¶
type GroupRemoveResp ¶
type InviteGroupMembersReq ¶
type InviteGroupMembersReq 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 InviteGroupMembersResp ¶
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 SetAdminReq ¶
type SetAdminResp ¶
type SetAdminResp struct {
}
type UpdateGroupAvatarReq ¶
type UpdateGroupAvatarResp ¶
type UpdateGroupAvatarResp struct {
}
type UpdateGroupFriendTypeResp ¶
type UpdateGroupFriendTypeResp struct {
}
type UpdateGroupJoinTypeReq ¶
type UpdateGroupJoinTypeResp ¶
type UpdateGroupJoinTypeResp struct {
}
type UpdateGroupMemberMuteTimeReq ¶
type UpdateGroupMemberMuteTimeReq 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 UpdateGroupMemberMuteTimeResp ¶
type UpdateGroupMemberMuteTimeResp struct {
Members []*GroupMember `json:"members"`
}
type UpdateGroupMemberNameResp ¶
type UpdateGroupMemberNameResp struct {
}
type UpdateGroupMuteTypeReq ¶
type UpdateGroupMuteTypeResp ¶
type UpdateGroupMuteTypeResp struct {
}
type UpdateGroupNameReq ¶
type UpdateGroupNameResp ¶
type UpdateGroupNameResp struct {
}
Click to show internal directories.
Click to hide internal directories.