实现线路优先级

This commit is contained in:
GoEdgeLab
2022-12-03 20:49:53 +08:00
parent 837f55ac1e
commit d0f04c01c4

View File

@@ -16,6 +16,7 @@ type NSRoute struct {
Ranges dbs.JSON `field:"ranges"` // 范围 Ranges dbs.JSON `field:"ranges"` // 范围
Order uint32 `field:"order"` // 排序 Order uint32 `field:"order"` // 排序
Version uint64 `field:"version"` // 版本号 Version uint64 `field:"version"` // 版本号
Priority uint32 `field:"priority"` // 优先级,越高越优先
Code string `field:"code"` // 代号 Code string `field:"code"` // 代号
State uint8 `field:"state"` // 状态 State uint8 `field:"state"` // 状态
} }
@@ -33,6 +34,7 @@ type NSRouteOperator struct {
Ranges any // 范围 Ranges any // 范围
Order any // 排序 Order any // 排序
Version any // 版本号 Version any // 版本号
Priority any // 优先级,越高越优先
Code any // 代号 Code any // 代号
State any // 状态 State any // 状态
} }