Files
open-im-server/pkg/cms_api_struct/group.go
T

90 lines
2.0 KiB
Go
Raw Normal View History

2022-01-21 18:39:57 +08:00
package cms_api_struct
2022-01-25 19:18:04 +08:00
type GroupResponse struct {
2022-01-26 00:37:58 +08:00
GroupName string `json:"group_name"`
GroupID string `json:"group_id"`
GroupMasterName string `json:"group_master_name"`
GroupMasterId string `json:"group_master_id"`
CreateTime string `json:"create_time"`
IsBanChat bool `json:"is_ban_chat"`
IsBanPrivateChat bool `json:"is_ban_private_chat"`
2022-01-26 18:43:01 +08:00
ProfilePhoto string `json:"profile_photo"`
2022-01-25 19:18:04 +08:00
}
type GetGroupRequest struct {
2022-01-26 18:43:01 +08:00
GroupName string `form:"group_name" binding:"required"`
RequestPagination
2022-01-25 19:18:04 +08:00
}
type GetGroupResponse struct {
2022-01-26 18:43:01 +08:00
Groups []GroupResponse `json:"groups"`
GroupNums int `json:"group_nums"`
ResponsePagination
2022-01-25 19:18:04 +08:00
}
type GetGroupsRequest struct {
RequestPagination
}
type GetGroupsResponse struct {
2022-01-26 00:37:58 +08:00
Groups []GroupResponse `json:"groups"`
GroupNums int `json:"group_nums"`
2022-01-25 19:18:04 +08:00
ResponsePagination
}
type CreateGroupRequest struct {
2022-01-26 00:37:58 +08:00
GroupName string `json:"group_name"`
GroupMasterId string `json:"group_master_id"`
GroupMembers []string `json:"group_members"`
2022-01-25 19:18:04 +08:00
}
type CreateGroupResponse struct {
}
type SetGroupMasterRequest struct {
GroupId string `json:"group_id"`
2022-01-26 00:37:58 +08:00
UserId string `json:"user_id"`
2022-01-25 19:18:04 +08:00
}
type SetGroupMasterResponse struct {
}
type BanGroupChatRequest struct {
GroupId string `json:"group_id"`
}
type BanGroupChatResponse struct {
}
type BanPrivateChatRequest struct {
GroupId string `json:"group_id"`
}
type BanPrivateChatResponse struct {
}
type DeleteGroupRequest struct {
GroupId string `json:"group_id"`
2022-01-26 00:37:58 +08:00
}
2022-01-25 19:18:04 +08:00
type DeleteGroupResponse struct {
}
2022-01-26 18:43:01 +08:00
type GetGroupMembersRequest struct {
2022-01-25 19:18:04 +08:00
GroupId string `json:"group_id"`
2022-01-26 18:43:01 +08:00
RequestPagination
2022-01-25 19:18:04 +08:00
}
type GroupMemberResponse struct {
MemberPosition int `json:"member_position"`
MemberNickName string `json:"member_nick_name"`
MemberId int `json:"member_id"`
JoinTime string `json:"join_time"`
}
2022-01-26 18:43:01 +08:00
type GetGroupMembersResponse struct {
2022-01-25 19:18:04 +08:00
GroupMemberList []GroupMemberResponse `json:"group_member_list"`
2022-01-26 00:37:58 +08:00
GroupMemberNums int `json:"group_member_nums"`
2022-01-25 19:18:04 +08:00
ResponsePagination
2022-01-21 18:39:57 +08:00
}