mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-29 06:49:19 +08:00
group rpc
This commit is contained in:
@@ -8,14 +8,18 @@ type GroupResponse struct {
|
||||
CreateTime string `json:"create_time"`
|
||||
IsBanChat bool `json:"is_ban_chat"`
|
||||
IsBanPrivateChat bool `json:"is_ban_private_chat"`
|
||||
ProfilePhoto string `json:"profile_photo"`
|
||||
}
|
||||
|
||||
type GetGroupRequest struct {
|
||||
GroupName string `form:"group_name"`
|
||||
GroupName string `form:"group_name" binding:"required"`
|
||||
RequestPagination
|
||||
}
|
||||
|
||||
type GetGroupResponse struct {
|
||||
GroupResponse
|
||||
Groups []GroupResponse `json:"groups"`
|
||||
GroupNums int `json:"group_nums"`
|
||||
ResponsePagination
|
||||
}
|
||||
|
||||
type GetGroupsRequest struct {
|
||||
@@ -66,8 +70,9 @@ type DeleteGroupRequest struct {
|
||||
type DeleteGroupResponse struct {
|
||||
}
|
||||
|
||||
type GetGroupMemberRequest struct {
|
||||
type GetGroupMembersRequest struct {
|
||||
GroupId string `json:"group_id"`
|
||||
RequestPagination
|
||||
}
|
||||
|
||||
type GroupMemberResponse struct {
|
||||
@@ -77,7 +82,7 @@ type GroupMemberResponse struct {
|
||||
JoinTime string `json:"join_time"`
|
||||
}
|
||||
|
||||
type GetGroupMemberResponse struct {
|
||||
type GetGroupMembersResponse struct {
|
||||
GroupMemberList []GroupMemberResponse `json:"group_member_list"`
|
||||
GroupMemberNums int `json:"group_member_nums"`
|
||||
ResponsePagination
|
||||
|
||||
@@ -4,7 +4,7 @@ type UserResponse struct {
|
||||
ProfilePhoto string `json:"profile_photo"`
|
||||
Nickname string `json:"nick_name"`
|
||||
UserId string `json:"user_id"`
|
||||
CreateTime string `json:"create_time"`
|
||||
CreateTime string `json:"create_time,omitempty"`
|
||||
IsBlock bool `json:"is_block"`
|
||||
}
|
||||
|
||||
@@ -49,6 +49,12 @@ type AddUserRequest struct {
|
||||
type AddUserResponse struct {
|
||||
}
|
||||
|
||||
type BlockUser struct {
|
||||
UserResponse
|
||||
BeginDisableTime string `json:"begin_disable_time"`
|
||||
EndDisableTime string `json:"end_disable_time"`
|
||||
}
|
||||
|
||||
type BlockUserRequest struct {
|
||||
UserId string `json:"user_id" binding:"required"`
|
||||
EndDisableTime string `json:"end_disable_time" binding:"required"`
|
||||
@@ -69,7 +75,15 @@ type GetBlockUsersRequest struct {
|
||||
}
|
||||
|
||||
type GetBlockUsersResponse struct {
|
||||
BlockUsers []UserResponse `json:"block_users"`
|
||||
BlockUsers []BlockUser `json:"block_users"`
|
||||
BlockUserNum int `json:"block_user_num"`
|
||||
ResponsePagination
|
||||
}
|
||||
|
||||
type GetBlockUserRequest struct {
|
||||
UserId string `form:"user_id" binding:"required"`
|
||||
}
|
||||
|
||||
type GetBlockUserResponse struct {
|
||||
BlockUser
|
||||
}
|
||||
Reference in New Issue
Block a user