Files
EdgeAPI/internal/db/models/server_bandwidth_stat_model.go

27 lines
792 B
Go
Raw Normal View History

package models
2022-07-05 20:08:58 +08:00
// ServerBandwidthStat 服务峰值带宽统计
type ServerBandwidthStat struct {
Id uint64 `field:"id"` // ID
UserId uint64 `field:"userId"` // 用户ID
2022-07-05 20:08:58 +08:00
ServerId uint64 `field:"serverId"` // 服务ID
2022-10-14 10:03:29 +08:00
RegionId uint32 `field:"regionId"` // 区域ID
2022-07-05 20:08:58 +08:00
Day string `field:"day"` // 日期YYYYMMDD
TimeAt string `field:"timeAt"` // 时间点HHMM
Bytes uint64 `field:"bytes"` // 带宽字节
}
type ServerBandwidthStatOperator struct {
2022-10-14 10:03:29 +08:00
Id any // ID
UserId any // 用户ID
ServerId any // 服务ID
RegionId any // 区域ID
Day any // 日期YYYYMMDD
TimeAt any // 时间点HHMM
Bytes any // 带宽字节
2022-07-05 20:08:58 +08:00
}
func NewServerBandwidthStatOperator() *ServerBandwidthStatOperator {
return &ServerBandwidthStatOperator{}
}