mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-08 02:20:24 +08:00
服务列表带宽使用新的算法
This commit is contained in:
@@ -48,53 +48,57 @@ type Server struct {
|
||||
UserPlanId uint32 `field:"userPlanId"` // 所属套餐ID
|
||||
LastUserPlanId uint32 `field:"lastUserPlanId"` // 上一次使用的套餐
|
||||
Uam dbs.JSON `field:"uam"` // UAM设置
|
||||
BandwidthTime string `field:"bandwidthTime"` // 带宽更新时间,YYYYMMDDHHII
|
||||
BandwidthBytes uint64 `field:"bandwidthBytes"` // 最近带宽峰值
|
||||
}
|
||||
|
||||
type ServerOperator struct {
|
||||
Id interface{} // ID
|
||||
IsOn interface{} // 是否启用
|
||||
UserId interface{} // 用户ID
|
||||
AdminId interface{} // 管理员ID
|
||||
Type interface{} // 服务类型
|
||||
Name interface{} // 名称
|
||||
Description interface{} // 描述
|
||||
PlainServerNames interface{} // 扁平化域名列表
|
||||
ServerNames interface{} // 域名列表
|
||||
AuditingAt interface{} // 审核提交时间
|
||||
AuditingServerNames interface{} // 审核中的域名
|
||||
IsAuditing interface{} // 是否正在审核
|
||||
AuditingResult interface{} // 审核结果
|
||||
Http interface{} // HTTP配置
|
||||
Https interface{} // HTTPS配置
|
||||
Tcp interface{} // TCP配置
|
||||
Tls interface{} // TLS配置
|
||||
Unix interface{} // Unix配置
|
||||
Udp interface{} // UDP配置
|
||||
WebId interface{} // WEB配置
|
||||
ReverseProxy interface{} // 反向代理配置
|
||||
GroupIds interface{} // 分组ID列表
|
||||
Config interface{} // 服务配置,自动生成
|
||||
ConfigMd5 interface{} // Md5
|
||||
ClusterId interface{} // 集群ID
|
||||
IncludeNodes interface{} // 部署条件
|
||||
ExcludeNodes interface{} // 节点排除条件
|
||||
Version interface{} // 版本号
|
||||
CreatedAt interface{} // 创建时间
|
||||
State interface{} // 状态
|
||||
DnsName interface{} // DNS名称
|
||||
TcpPorts interface{} // 所包含TCP端口
|
||||
UdpPorts interface{} // 所包含UDP端口
|
||||
SupportCNAME interface{} // 允许CNAME不在域名名单
|
||||
TrafficLimit interface{} // 流量限制
|
||||
TrafficDay interface{} // YYYYMMDD
|
||||
TrafficMonth interface{} // YYYYMM
|
||||
TotalDailyTraffic interface{} // 日流量
|
||||
TotalMonthlyTraffic interface{} // 月流量
|
||||
TrafficLimitStatus interface{} // 流量限制状态
|
||||
TotalTraffic interface{} // 总流量
|
||||
UserPlanId interface{} // 所属套餐ID
|
||||
LastUserPlanId interface{} // 上一次使用的套餐
|
||||
Uam interface{} // UAM设置
|
||||
Id any // ID
|
||||
IsOn any // 是否启用
|
||||
UserId any // 用户ID
|
||||
AdminId any // 管理员ID
|
||||
Type any // 服务类型
|
||||
Name any // 名称
|
||||
Description any // 描述
|
||||
PlainServerNames any // 扁平化域名列表
|
||||
ServerNames any // 域名列表
|
||||
AuditingAt any // 审核提交时间
|
||||
AuditingServerNames any // 审核中的域名
|
||||
IsAuditing any // 是否正在审核
|
||||
AuditingResult any // 审核结果
|
||||
Http any // HTTP配置
|
||||
Https any // HTTPS配置
|
||||
Tcp any // TCP配置
|
||||
Tls any // TLS配置
|
||||
Unix any // Unix配置
|
||||
Udp any // UDP配置
|
||||
WebId any // WEB配置
|
||||
ReverseProxy any // 反向代理配置
|
||||
GroupIds any // 分组ID列表
|
||||
Config any // 服务配置,自动生成
|
||||
ConfigMd5 any // Md5
|
||||
ClusterId any // 集群ID
|
||||
IncludeNodes any // 部署条件
|
||||
ExcludeNodes any // 节点排除条件
|
||||
Version any // 版本号
|
||||
CreatedAt any // 创建时间
|
||||
State any // 状态
|
||||
DnsName any // DNS名称
|
||||
TcpPorts any // 所包含TCP端口
|
||||
UdpPorts any // 所包含UDP端口
|
||||
SupportCNAME any // 允许CNAME不在域名名单
|
||||
TrafficLimit any // 流量限制
|
||||
TrafficDay any // YYYYMMDD
|
||||
TrafficMonth any // YYYYMM
|
||||
TotalDailyTraffic any // 日流量
|
||||
TotalMonthlyTraffic any // 月流量
|
||||
TrafficLimitStatus any // 流量限制状态
|
||||
TotalTraffic any // 总流量
|
||||
UserPlanId any // 所属套餐ID
|
||||
LastUserPlanId any // 上一次使用的套餐
|
||||
Uam any // UAM设置
|
||||
BandwidthTime any // 带宽更新时间,YYYYMMDDHHII
|
||||
BandwidthBytes any // 最近带宽峰值
|
||||
}
|
||||
|
||||
func NewServerOperator() *ServerOperator {
|
||||
|
||||
Reference in New Issue
Block a user