2024-01-24 21:33:51 +08:00
|
|
|
package statistic_service
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"message-nest/models"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type StatisticService struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (sw *StatisticService) GetStatisticData() (models.StatisticData, error) {
|
|
|
|
|
return models.GetStatisticData()
|
|
|
|
|
}
|
2025-09-20 14:09:07 +08:00
|
|
|
|
|
|
|
|
// GetBasicStatisticData 获取基础统计数据
|
|
|
|
|
func (sw *StatisticService) GetBasicStatisticData() (models.BasicStatisticData, error) {
|
|
|
|
|
return models.GetBasicStatisticData()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetTrendStatisticData 获取趋势统计数据
|
|
|
|
|
func (sw *StatisticService) GetTrendStatisticData() (models.TrendStatisticData, error) {
|
|
|
|
|
return models.GetTrendStatisticData()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetChannelStatisticData 获取渠道统计数据
|
|
|
|
|
func (sw *StatisticService) GetChannelStatisticData() (models.ChannelStatisticData, error) {
|
|
|
|
|
return models.GetChannelStatisticData()
|
|
|
|
|
}
|