mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-16 05:46:34 +08:00
实现线路优先级/多个NS接口增加用户ID参数
This commit is contained in:
@@ -18,6 +18,7 @@ message NSDomain {
|
||||
bytes tsigJSON = 7;
|
||||
repeated int64 nsDomainGroupIds = 8;
|
||||
string status = 9;
|
||||
int64 userId = 10; // 用户ID
|
||||
|
||||
NSCluster nsCluster = 30;
|
||||
User user = 31;
|
||||
|
||||
@@ -18,6 +18,8 @@ message NSRoute {
|
||||
int64 version = 7;
|
||||
string code = 8;
|
||||
bool isPublic = 9;
|
||||
int32 priority = 10; // 优先级
|
||||
int64 userId = 11; // 所属用户ID
|
||||
|
||||
NSCluster nsCluster = 30;
|
||||
NSDomain nsDomain = 31;
|
||||
|
||||
@@ -53,8 +53,9 @@ message CreateNSRouteRequest {
|
||||
int64 userId = 3;
|
||||
string name = 4;
|
||||
bytes rangesJSON = 5;
|
||||
bool isPublic = 6;
|
||||
int64 nsRouteCategoryId = 7;
|
||||
bool isPublic = 6; // 是否公用
|
||||
int64 nsRouteCategoryId = 7; // 分类ID
|
||||
int32 priority = 8; // 优先级
|
||||
}
|
||||
|
||||
message CreateNSRouteResponse {
|
||||
@@ -66,8 +67,9 @@ message UpdateNSRouteRequest {
|
||||
int64 nsRouteId = 1;
|
||||
string name = 2;
|
||||
bytes rangesJSON = 3;
|
||||
bool isPublic = 4;
|
||||
int64 nsRouteCategoryId = 5;
|
||||
bool isPublic = 4; // 是否公用
|
||||
int64 nsRouteCategoryId = 5; // 分类ID
|
||||
int32 priority = 7; // 优先级
|
||||
bool isOn = 6;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user