chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)

This commit is contained in:
MiFaZhan
2026-11-02 13:27:59 +08:00
1250 changed files with 154111 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
// ================================================================================
// 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
}