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/statistics.go

90 lines
2.4 KiB

3 years ago
package cms_api_struct
3 years ago
type GetStatisticsRequest struct {
3 years ago
From string `form:"from" binding:"required"`
To string `form:"to" binding:"required"`
}
type GetMessageStatisticsRequest struct {
GetStatisticsRequest
3 years ago
}
3 years ago
type GetMessageStatisticsResponse struct {
3 years ago
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"`
}
3 years ago
type GetUserStatisticsRequest struct {
GetStatisticsRequest
}
3 years ago
type GetUserStatisticsResponse struct {
3 years ago
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"`
3 years ago
TotalUserNum int `json:"total_user_num"`
3 years ago
} `json:"total_user_num_list"`
}
3 years ago
type GetGroupStatisticsRequest struct {
GetStatisticsRequest
}
3 years ago
// 群聊统计
3 years ago
type GetGroupStatisticsResponse struct {
3 years ago
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"`
3 years ago
TotalGroupNum int `json:"total_group_num"`
3 years ago
} `json:"total_group_num_list"`
}
3 years ago
type GetActiveUserRequest struct {
GetStatisticsRequest
// RequestPagination
}
type GetActiveUserResponse struct {
3 years ago
ActiveUserList []struct {
NickName string `json:"nick_name"`
3 years ago
UserId string `json:"user_id"`
3 years ago
MessageNum int `json:"message_num"`
} `json:"active_user_list"`
}
3 years ago
type GetActiveGroupRequest struct {
GetStatisticsRequest
// RequestPagination
}
type GetActiveGroupResponse struct {
3 years ago
ActiveGroupList []struct {
3 years ago
GroupName string `json:"group_name"`
GroupId string `json:"group_id"`
MessageNum int `json:"message_num"`
3 years ago
} `json:"active_group_list"`
}