42 lines
1.4 KiB
Go
42 lines
1.4 KiB
Go
// ================================================================================
|
|
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
|
// You can delete these comments if you wish manually maintain this interface file.
|
|
// ================================================================================
|
|
|
|
package service
|
|
|
|
import (
|
|
"context"
|
|
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
|
|
)
|
|
|
|
type (
|
|
IHome interface {
|
|
GetCardStatistics(ctx context.Context) (stats *model.CardStatistics, err error)
|
|
// GetCardStatusStatistics 获取卡状态统计
|
|
GetCardStatusStatistics(ctx context.Context) (stats *model.CardStatusStatistics, err error)
|
|
// GetDeptFlowUsageChart 获取部门流量使用图表数据,用于折线图展示
|
|
// period: 7d 前7天, 1m 前6个月
|
|
GetDeptFlowUsageChart(ctx context.Context, period string) (*model.FlowUsageChartData, error)
|
|
// GetTopUsageCardsYesterday 获取前一天流量使用前五名的卡片
|
|
GetTopUsageCardsYesterday(ctx context.Context) ([]model.TopUsageCard, error)
|
|
// GetFlowPoolUsageList 获取该用户下所有流量池的流量使用情况
|
|
GetFlowPoolUsageList(ctx context.Context) ([]model.FlowPoolUsageItem, error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localHome IHome
|
|
)
|
|
|
|
func Home() IHome {
|
|
if localHome == nil {
|
|
panic("implement not found for interface IHome, forgot register?")
|
|
}
|
|
return localHome
|
|
}
|
|
|
|
func RegisterHome(i IHome) {
|
|
localHome = i
|
|
}
|