29 lines
995 B
Go
29 lines
995 B
Go
package proto
|
|
|
|
// 基础统计信息,会话数,问答数,用户数,今日处理问答数
|
|
type DashBoardStatisticsSt struct {
|
|
SessionNum int64 `json:"session_num"`
|
|
MessageCount int64 `json:"message_count"`
|
|
UserCount int64 `json:"user_count"`
|
|
TodayMessageCount int64 `json:"today_message_count"`
|
|
}
|
|
|
|
// 统计过去一周每天的会话数、消息数
|
|
type DashBoardStatisticsWeekSt struct {
|
|
SessionCount map[int]int64 `json:"session_count"`
|
|
MessageCount map[int]int64 `json:"message_count"`
|
|
}
|
|
|
|
type DashBoardStatisticsResp struct {
|
|
DashBoardStatisticsSt DashBoardStatisticsSt `json:"dashboard_statistics_st"`
|
|
DashBoardStatisticsWeekSt DashBoardStatisticsWeekSt `json:"dashboard_statistics_week"`
|
|
// 模型的使用统计
|
|
DashBoardStatisticsModelSt []MessageModelIDCountSt `json:"dashboard_statistics_model_st"`
|
|
}
|
|
|
|
type MessageModelIDCountSt struct {
|
|
ModelID uint `json:"model_id"`
|
|
ModelName string `json:"name"`
|
|
Count int `json:"value"`
|
|
}
|