mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-28 14:29:19 +08:00
pb api
This commit is contained in:
@@ -0,0 +1 @@
|
||||
package cms_api_struct
|
||||
@@ -0,0 +1,10 @@
|
||||
package cms_api_struct
|
||||
|
||||
|
||||
type RequestPagination struct {
|
||||
PageNumber int `json:"page_number"`
|
||||
ShowNumber int `json:"show_number"`
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
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 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"`
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package cms_api_struct
|
||||
|
||||
type SearchMessageByUserResponse struct {
|
||||
MessageList []struct {
|
||||
ChatType int `json:"chat_type"`
|
||||
MessageType int `json:"message_type"`
|
||||
SenderNickName string `json:"sender_nick_name"`
|
||||
SenderId int `json:"sender_id"`
|
||||
ReceiverNickName string `json:"receiver_nick_name"`
|
||||
ReceiverID int `json:"receiver_id"`
|
||||
SearchContent string `json:"search_content"`
|
||||
WholeContent string `json:"whole_content"`
|
||||
Date string `json:"date"`
|
||||
} `json:"massage_list"`
|
||||
}
|
||||
|
||||
type SearchMessageByGroupResponse struct {
|
||||
MessageList []struct {
|
||||
ChatType int `json:"chat_type"`
|
||||
MessageType int `json:"message_type"`
|
||||
SenderNickName string `json:"sender_nick_name"`
|
||||
SenderId int `json:"sender_id"`
|
||||
SearchContent string `json:"search_content"`
|
||||
WholeContent string `json:"whole_content"`
|
||||
Date string `json:"date"`
|
||||
} `json:"massage_list"`
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package cms_api_struct
|
||||
|
||||
type GetStaffsResponse struct {
|
||||
StaffsList []struct {
|
||||
ProfilePhoto string `json:"profile_photo"`
|
||||
NickName string `json:"nick_name"`
|
||||
StaffId int `json:"staff_id"`
|
||||
Position string `json:"position"`
|
||||
EntryTime string `json:"entry_time"`
|
||||
} `json:"staffs_list"`
|
||||
}
|
||||
|
||||
type GetOrganizationsResponse struct {
|
||||
OrganizationList []struct {
|
||||
OrganizationId int `json:"organization_id"`
|
||||
OrganizationName string `json:"organization_name"`
|
||||
} `json:"organization_list"`
|
||||
}
|
||||
|
||||
type SquadResponse struct {
|
||||
SquadList []struct {
|
||||
SquadId int `json:"squad_id"`
|
||||
SquadName string `json:"squad_name"`
|
||||
} `json:"squad_list"`
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package cms_api_struct
|
||||
|
||||
type StatisticsRequest struct {
|
||||
From string `json:"from"`
|
||||
To string `json:"to"`
|
||||
}
|
||||
|
||||
// 单聊
|
||||
type MessageStatisticsResponse struct {
|
||||
PrivateMessageNum int `json:"private_message_num"`
|
||||
GroupMessageNum int `json:"group_message_num"`
|
||||
PrivateMessageNumList []struct {
|
||||
Date string `json:"date"`
|
||||
MessageNum int `json:"message_num"`
|
||||
} `json:"private_message_num_list"`
|
||||
GroupMessageNumList []struct {
|
||||
Date string `json:"date"`
|
||||
MessageNum int `json:"message_num"`
|
||||
} `json:"group_message_num_list"`
|
||||
}
|
||||
|
||||
// 用户统计
|
||||
type UserStatisticsResponse struct {
|
||||
IncreaseUserNum int `json:"increase_user_num"`
|
||||
ActiveUserNum int `json:"active_user_num"`
|
||||
TotalUserNum int `json:"total_user_num"`
|
||||
IncreaseUserNumList []struct {
|
||||
Date string `json:"date"`
|
||||
IncreaseUserNum int `json:"increase_user_num"`
|
||||
} `json:"increase_user_num_list"`
|
||||
ActiveUserNumList []struct {
|
||||
Date string `json:"date"`
|
||||
ActiveUserNum int `json:"active_user_num"`
|
||||
} `json:"active_user_num_list"`
|
||||
TotalUserNumList []struct {
|
||||
Date string `json:"date"`
|
||||
TotalUserNum string `json:"total_user_num"`
|
||||
} `json:"total_user_num_list"`
|
||||
}
|
||||
|
||||
// 群聊统计
|
||||
type GroupMessageStatisticsResponse struct {
|
||||
IncreaseGroupNum int `json:"increase_group_num"`
|
||||
TotalGroupNum int `json:"total_group_num"`
|
||||
IncreaseGroupNumList []struct {
|
||||
Date string `json:"date"`
|
||||
IncreaseGroupNum int `json:"increase_group_num"`
|
||||
} `json:"increase_group_num_list"`
|
||||
TotalGroupNumList []struct {
|
||||
Date string `json:"date"`
|
||||
TotalGroupNum string `json:"total_group_num"`
|
||||
} `json:"total_group_num_list"`
|
||||
}
|
||||
|
||||
type ActiveUserStatisticsResponse struct {
|
||||
ActiveUserList []struct {
|
||||
NickName string `json:"nick_name"`
|
||||
Id int `json:"id"`
|
||||
MessageNum int `json:"message_num"`
|
||||
} `json:"active_user_list"`
|
||||
}
|
||||
|
||||
type ActiveGroupStatisticsResponse struct {
|
||||
ActiveGroupList []struct {
|
||||
GroupNickName string `json:"group_nick_name"`
|
||||
GroupId int `json:"group_id"`
|
||||
MessageNum int `json:"message_num"`
|
||||
} `json:"active_group_list"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package cms_api_struct
|
||||
|
||||
type GetUsersResponse struct {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user