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

154 lines
3.8 KiB

3 years ago
package cms_api_struct
2 years ago
import (
server_api_params "Open_IM/pkg/proto/sdk_ws"
)
2 years ago
3 years ago
type GroupResponse struct {
2 years ago
GroupOwnerName string `json:"GroupOwnerName"`
GroupOwnerID string `json:"GroupOwnerID"`
2 years ago
//*server_api_params.GroupInfo
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"`
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
}
2 years ago
type GetGroupByIDRequest struct {
GroupID string `form:"groupID" binding:"required"`
3 years ago
}
2 years ago
type GetGroupByIDResponse struct {
3 years ago
GroupResponse
}
3 years ago
type GetGroupRequest struct {
2 years ago
GroupName string `form:"groupName" binding:"required"`
3 years ago
RequestPagination
3 years ago
}
type GetGroupResponse struct {
3 years ago
Groups []GroupResponse `json:"groups"`
2 years ago
GroupNums int `json:"groupNums"`
3 years ago
ResponsePagination
3 years ago
}
type GetGroupsRequest struct {
RequestPagination
}
type GetGroupsResponse struct {
3 years ago
Groups []GroupResponse `json:"groups"`
2 years ago
GroupNums int `json:"groupNums"`
3 years ago
ResponsePagination
}
type CreateGroupRequest struct {
2 years ago
GroupName string `json:"groupName" binding:"required"`
GroupMasterId string `json:"groupOwnerID" binding:"required"`
GroupMembers []string `json:"groupMembers" binding:"required"`
3 years ago
}
type CreateGroupResponse struct {
}
type SetGroupMasterRequest struct {
2 years ago
GroupId string `json:"groupID" binding:"required"`
UserId string `json:"userID" binding:"required"`
3 years ago
}
type SetGroupMasterResponse struct {
}
3 years ago
type SetGroupMemberRequest struct {
2 years ago
GroupId string `json:"groupID" binding:"required"`
UserId string `json:"userID" binding:"required"`
3 years ago
}
type SetGroupMemberRespones struct {
}
3 years ago
type BanGroupChatRequest struct {
2 years ago
GroupId string `json:"groupID" binding:"required"`
3 years ago
}
type BanGroupChatResponse struct {
}
type BanPrivateChatRequest struct {
2 years ago
GroupId string `json:"groupID" binding:"required"`
3 years ago
}
type BanPrivateChatResponse struct {
}
type DeleteGroupRequest struct {
2 years ago
GroupId string `json:"groupID" binding:"required"`
3 years ago
}
3 years ago
type DeleteGroupResponse struct {
}
3 years ago
type GetGroupMembersRequest struct {
2 years ago
GroupID string `form:"groupID" binding:"required"`
UserName string `form:"userName"`
3 years ago
RequestPagination
3 years ago
}
3 years ago
type GetGroupMembersResponse struct {
2 years ago
GroupMembers []server_api_params.GroupMemberFullInfo `json:"groupMembers"`
3 years ago
ResponsePagination
2 years ago
MemberNums int `json:"memberNums"`
3 years ago
}
type GroupMemberRequest struct {
2 years ago
GroupId string `json:"groupID" binding:"required"`
3 years ago
Members []string `json:"members" binding:"required"`
3 years ago
}
type GroupMemberOperateResponse struct {
Success []string `json:"success"`
3 years ago
Failed []string `json:"failed"`
3 years ago
}
type AddGroupMembersRequest struct {
GroupMemberRequest
}
type AddGroupMembersResponse struct {
GroupMemberOperateResponse
}
type RemoveGroupMembersRequest struct {
GroupMemberRequest
}
3 years ago
type RemoveGroupMembersResponse struct {
3 years ago
GroupMemberOperateResponse
}
3 years ago
type AlterGroupInfoRequest struct {
2 years ago
GroupID string `json:"groupID"`
GroupName string `json:"groupName"`
3 years ago
Notification string `json:"notification"`
Introduction string `json:"introduction"`
2 years ago
ProfilePhoto string `json:"profilePhoto"`
GroupType int `json:"groupType"`
3 years ago
}
type AlterGroupInfoResponse struct {
}