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

91 lines
2.5 KiB

3 years ago
package cms_api_struct
3 years ago
type GetStatisticsRequest struct {
2 years ago
From string `json:"from" binding:"required"`
To string `json:"to" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
3 years ago
}
type GetMessageStatisticsRequest struct {
GetStatisticsRequest
3 years ago
}
3 years ago
type GetMessageStatisticsResponse struct {
2 years ago
PrivateMessageNum int `json:"privateMessageNum"`
GroupMessageNum int `json:"groupMessageNum"`
3 years ago
PrivateMessageNumList []struct {
Date string `json:"date"`
2 years ago
MessageNum int `json:"messageNum"`
} `json:"privateMessageNumList"`
3 years ago
GroupMessageNumList []struct {
Date string `json:"date"`
2 years ago
MessageNum int `json:"messageNum"`
} `json:"groupMessageNumList"`
3 years ago
}
3 years ago
type GetUserStatisticsRequest struct {
GetStatisticsRequest
}
3 years ago
type GetUserStatisticsResponse struct {
2 years ago
IncreaseUserNum int `json:"increaseUserNum"`
ActiveUserNum int `json:"activeUserNum"`
TotalUserNum int `json:"totalUserNum"`
3 years ago
IncreaseUserNumList []struct {
Date string `json:"date"`
2 years ago
IncreaseUserNum int `json:"increaseUserNum"`
} `json:"increaseUserNumList"`
3 years ago
ActiveUserNumList []struct {
Date string `json:"date"`
2 years ago
ActiveUserNum int `json:"activeUserNum"`
} `json:"activeUserNumList"`
3 years ago
TotalUserNumList []struct {
Date string `json:"date"`
2 years ago
TotalUserNum int `json:"totalUserNum"`
} `json:"totalUserNumList"`
3 years ago
}
3 years ago
type GetGroupStatisticsRequest struct {
GetStatisticsRequest
}
3 years ago
// 群聊统计
3 years ago
type GetGroupStatisticsResponse struct {
2 years ago
IncreaseGroupNum int `json:"increaseGroupNum"`
TotalGroupNum int `json:"totalGroupNum"`
3 years ago
IncreaseGroupNumList []struct {
Date string `json:"date"`
2 years ago
IncreaseGroupNum int `json:"increaseGroupNum"`
} `json:"increaseGroupNumList"`
3 years ago
TotalGroupNumList []struct {
Date string `json:"date"`
2 years ago
TotalGroupNum int `json:"totalGroupNum"`
} `json:"totalGroupNumList"`
3 years ago
}
3 years ago
type GetActiveUserRequest struct {
GetStatisticsRequest
// RequestPagination
}
type GetActiveUserResponse struct {
3 years ago
ActiveUserList []struct {
2 years ago
NickName string `json:"nickName"`
UserId string `json:"userID"`
MessageNum int `json:"messageNum"`
} `json:"activeUserList"`
3 years ago
}
3 years ago
type GetActiveGroupRequest struct {
GetStatisticsRequest
// RequestPagination
}
type GetActiveGroupResponse struct {
3 years ago
ActiveGroupList []struct {
2 years ago
GroupName string `json:"groupName"`
GroupId string `json:"groupID"`
MessageNum int `json:"messageNum"`
} `json:"activeGroupList"`
3 years ago
}