Files
EdgeAPI/internal/db/models/traffic_package_model.go
2022-10-20 10:24:36 +08:00

25 lines
609 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
// TrafficPackage 流量包
type TrafficPackage struct {
Id uint32 `field:"id"` // ID
Size uint32 `field:"size"` // 尺寸
Unit string `field:"unit"` // 单位gb|tb等
Bytes uint64 `field:"bytes"` // 字节
IsOn bool `field:"isOn"` // 是否启用
State uint8 `field:"state"` // 状态
}
type TrafficPackageOperator struct {
Id any // ID
Size any // 尺寸
Unit any // 单位gb|tb等
Bytes any // 字节
IsOn any // 是否启用
State any // 状态
}
func NewTrafficPackageOperator() *TrafficPackageOperator {
return &TrafficPackageOperator{}
}