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
+19
View File
@@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package home
import (
"context"
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/api/home/v1"
)
type IHomeV1 interface {
CardStatistics(ctx context.Context, req *v1.CardStatisticsReq) (res *v1.CardStatisticsRes, err error)
CardStatusStatistics(ctx context.Context, req *v1.CardStatusStatisticsReq) (res *v1.CardStatusStatisticsRes, err error)
TopUsageCards(ctx context.Context, req *v1.TopUsageCardsReq) (res *v1.TopUsageCardsRes, err error)
FlowUsageChart(ctx context.Context, req *v1.FlowUsageChartReq) (res *v1.FlowUsageChartRes, err error)
FlowPoolUsage(ctx context.Context, req *v1.FlowPoolUsageReq) (res *v1.FlowPoolUsageRes, err error)
}
+53
View File
@@ -0,0 +1,53 @@
// Package v1
// @Link https://github.com/xiujiecn/xiu-admin
// @Copyright Copyright (c) 2025 LiXiujie
// @Author Lxj <xxx@example.com>
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
package v1
import (
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
"github.com/gogf/gf/v2/frame/g"
)
type CardStatisticsReq struct {
g.Meta `path:"/cardStatistics" method:"get" tags:"首页统计" summary:"获取卡片数据统计"`
}
type CardStatisticsRes struct {
model.CardStatistics
}
type CardStatusStatisticsReq struct {
g.Meta `path:"/cardStatusStatistics" method:"get" tags:"首页统计" summary:"获取卡状态统计"`
}
type CardStatusStatisticsRes struct {
model.CardStatusStatistics
}
type TopUsageCardsReq struct {
g.Meta `path:"/topUsageCards" method:"get" tags:"首页统计" summary:"获取前一天流量使用前五名的卡片"`
}
type TopUsageCardsRes struct {
Data []model.TopUsageCard `json:"data"`
}
type FlowUsageChartReq struct {
g.Meta `path:"/flowUsageChart" method:"get" tags:"首页统计" summary:"获取流量使用图表数据"`
Period string `json:"period" dc:"时间周期: 7d前7天, 1m前6个月" v:"required|in:7d,1m"`
}
type FlowUsageChartRes struct {
model.FlowUsageChartData
}
type FlowPoolUsageReq struct {
g.Meta `path:"/flowPoolUsage" method:"get" tags:"首页统计" summary:"获取流量池流量使用情况"`
}
type FlowPoolUsageRes struct {
Data []model.FlowPoolUsageItem `json:"data"`
}