mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-01 07:35:58 +08:00
cms
This commit is contained in:
+85
-15
@@ -1,20 +1,90 @@
|
||||
package cms_api_struct
|
||||
|
||||
type SearchGroupsResponse struct {
|
||||
GroupList []struct {
|
||||
GroupNickName string `json:"group_nick_name"`
|
||||
GroupID int `json:"group_id"`
|
||||
MasterName string `json:"master_name"`
|
||||
MasterId int `json:"master_id"`
|
||||
CreatTime string `json:"creat_time"`
|
||||
} `json:"group_list"`
|
||||
type GroupResponse struct {
|
||||
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"`
|
||||
}
|
||||
|
||||
type SearchGroupMemberResponse struct {
|
||||
GroupMemberList []struct {
|
||||
MemberPosition int `json:"member_position"`
|
||||
MemberNickName string `json:"member_nick_name"`
|
||||
MemberId int `json:"member_id"`
|
||||
JoinTime string `json:"join_time"`
|
||||
} `json:"group_member_list"`
|
||||
type GetGroupRequest struct {
|
||||
GroupName string `form:"group_name"`
|
||||
}
|
||||
|
||||
type GetGroupResponse struct {
|
||||
GroupResponse
|
||||
}
|
||||
|
||||
type GetGroupsRequest struct {
|
||||
RequestPagination
|
||||
}
|
||||
|
||||
type GetGroupsResponse struct {
|
||||
Groups []GroupResponse `json:"groups"`
|
||||
GroupNums int `json:"group_nums"`
|
||||
ResponsePagination
|
||||
}
|
||||
|
||||
type CreateGroupRequest struct {
|
||||
GroupName string `json:"group_name"`
|
||||
GroupMasterId string `json:"group_master_id"`
|
||||
GroupMembers []string `json:"group_members"`
|
||||
}
|
||||
|
||||
type CreateGroupResponse struct {
|
||||
|
||||
}
|
||||
|
||||
type SetGroupMasterRequest struct {
|
||||
GroupId string `json:"group_id"`
|
||||
UserId string `json:"user_id"`
|
||||
}
|
||||
|
||||
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"`
|
||||
}
|
||||
|
||||
type DeleteGroupResponse struct {
|
||||
|
||||
}
|
||||
|
||||
type GetGroupMemberRequest struct {
|
||||
GroupId string `json:"group_id"`
|
||||
}
|
||||
|
||||
type GroupMemberResponse struct {
|
||||
MemberPosition int `json:"member_position"`
|
||||
MemberNickName string `json:"member_nick_name"`
|
||||
MemberId int `json:"member_id"`
|
||||
JoinTime string `json:"join_time"`
|
||||
}
|
||||
|
||||
type GetGroupMemberResponse struct {
|
||||
GroupMemberList []GroupMemberResponse `json:"group_member_list"`
|
||||
GroupMemberNums int `json:"group_member_nums"`
|
||||
ResponsePagination
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user