实现线路优先级/多个NS接口增加用户ID参数

This commit is contained in:
GoEdgeLab
2022-12-03 20:49:10 +08:00
parent 07607df059
commit af2592b531
7 changed files with 246 additions and 191 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}