You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/cms_api_struct/group.go

65 lines
2.3 KiB

3 years ago
package cms_api_struct
3 years ago
type GroupResponse struct {
2 years ago
GroupOwnerName string `json:"GroupOwnerName"`
GroupOwnerID string `json:"GroupOwnerID"`
2 years ago
GroupID string `json:"groupID"`
GroupName string `json:"groupName"`
Notification string `json:"notification"`
Introduction string `json:"introduction"`
FaceURL string `json:"faceURL"`
OwnerUserID string `json:"ownerUserID"`
CreateTime uint32 `json:"createTime"`
MemberCount uint32 `json:"memberCount"`
2 years ago
Ex string `json:"ex"`
Status int32 `json:"status"`
CreatorUserID string `json:"creatorUserID"`
GroupType int32 `json:"groupType"`
NeedVerification int32 `json:"needVerification"`
LookMemberInfo int32 `json:"lookMemberInfo"`
ApplyMemberFriend int32 `json:"applyMemberFriend"`
NotificationUpdateTime uint32 `json:"notificationUpdateTime"`
NotificationUserID string `json:"notificationUserID"`
3 years ago
}
type GetGroupsRequest struct {
RequestPagination
2 years ago
OperationID string `json:"operationID" binding:"required"`
2 years ago
GroupID string `json:"groupID"`
GroupName string `json:"groupName"`
3 years ago
}
type GetGroupsResponse struct {
3 years ago
Groups []GroupResponse `json:"groups"`
2 years ago
GroupNums int `json:"groupNums"`
3 years ago
ResponsePagination
}
3 years ago
type GetGroupMembersRequest struct {
2 years ago
GroupID string `form:"groupID" binding:"required"`
UserName string `form:"userName"`
2 years ago
OperationID string `json:"operationID" binding:"required"`
3 years ago
RequestPagination
3 years ago
}
2 years ago
type GroupMemberResponse struct {
GroupID string `json:"groupID"`
UserID string `json:"userID"`
RoleLevel int32 `json:"roleLevel"`
JoinTime int32 `json:"joinTime"`
Nickname string `json:"nickname"`
FaceURL string `json:"faceURL"`
AppMangerLevel int32 `json:"appMangerLevel"` //if >0
JoinSource int32 `json:"joinSource"`
OperatorUserID string `json:"operatorUserID"`
Ex string `json:"ex"`
MuteEndTime uint32 `json:"muteEndTime"`
InviterUserID string `json:"inviterUserID"`
}
3 years ago
type GetGroupMembersResponse struct {
2 years ago
GroupMembers []GroupMemberResponse `json:"groupMembers"`
3 years ago
ResponsePagination
2 years ago
MemberNums int `json:"memberNums"`
3 years ago
}