54 lines
1.5 KiB
Go
54 lines
1.5 KiB
Go
// 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"`
|
|
}
|