换成单集群模式

This commit is contained in:
robin
2026-03-02 20:07:53 +08:00
parent 5d0b7c7e91
commit 2a76d1773d
432 changed files with 5681 additions and 5095 deletions

View File

@@ -8,8 +8,7 @@ message HTTPDNSApp {
string name = 2;
string appId = 3;
bool isOn = 4;
int64 primaryClusterId = 5;
int64 backupClusterId = 6;
reserved 5, 6; // removed: primaryClusterId, backupClusterId
string sniMode = 7;
bool signEnabled = 8;
string signSecret = 9;
@@ -17,4 +16,5 @@ message HTTPDNSApp {
int64 createdAt = 11;
int64 updatedAt = 12;
int64 userId = 13;
bytes clusterIdsJSON = 14;
}

View File

@@ -3,6 +3,8 @@ option go_package = "./pb";
package pb;
import "models/model_node_login.proto";
message HTTPDNSNode {
int64 id = 1;
int64 clusterId = 2;
@@ -18,4 +20,5 @@ message HTTPDNSNode {
bytes installStatusJSON = 12;
int64 createdAt = 13;
int64 updatedAt = 14;
NodeLogin nodeLogin = 15;
}

View File

@@ -28,6 +28,7 @@ message User {
bool isEnterpriseIdentified = 18; // 是否已通过企业验证
string bandwidthAlgo = 21; // 带宽算法
string lang = 22; // 语言代号
bytes httpdnsClusterIdsJSON = 24; // HTTPDNS关联集群ID列表
Login otpLogin = 19; // OTP认证

View File

@@ -20,11 +20,11 @@ service HTTPDNSAppService {
message CreateHTTPDNSAppRequest {
string name = 1;
string appId = 2;
int64 primaryClusterId = 3;
int64 backupClusterId = 4;
reserved 3, 4; // removed: primaryClusterId, backupClusterId
bool isOn = 5;
bool signEnabled = 6;
int64 userId = 7;
bytes clusterIdsJSON = 8;
}
message CreateHTTPDNSAppResponse {
@@ -34,10 +34,10 @@ message CreateHTTPDNSAppResponse {
message UpdateHTTPDNSAppRequest {
int64 appDbId = 1;
string name = 2;
int64 primaryClusterId = 3;
int64 backupClusterId = 4;
reserved 3, 4; // removed: primaryClusterId, backupClusterId
bool isOn = 5;
int64 userId = 6;
bytes clusterIdsJSON = 7;
}
message DeleteHTTPDNSAppRequest {

View File

@@ -4,6 +4,7 @@ option go_package = "./pb";
package pb;
import "models/model_httpdns_node.proto";
import "models/model_node_login.proto";
import "models/rpc_messages.proto";
service HTTPDNSNodeService {
@@ -13,6 +14,8 @@ service HTTPDNSNodeService {
rpc findHTTPDNSNode (FindHTTPDNSNodeRequest) returns (FindHTTPDNSNodeResponse);
rpc listHTTPDNSNodes (ListHTTPDNSNodesRequest) returns (ListHTTPDNSNodesResponse);
rpc updateHTTPDNSNodeStatus (UpdateHTTPDNSNodeStatusRequest) returns (RPCSuccess);
// 修改HTTPDNS节点登录信息
rpc updateHTTPDNSNodeLogin (UpdateHTTPDNSNodeLoginRequest) returns (RPCSuccess);
}
message CreateHTTPDNSNodeRequest {
@@ -61,3 +64,9 @@ message UpdateHTTPDNSNodeStatusRequest {
bytes statusJSON = 5;
bytes installStatusJSON = 6;
}
// 修改HTTPDNS节点登录信息
message UpdateHTTPDNSNodeLoginRequest {
int64 nodeId = 1;
NodeLogin nodeLogin = 2;
}

View File

@@ -148,6 +148,7 @@ message UpdateUserRequest {
bool isOn = 9;
int64 nodeClusterId = 10;
string bandwidthAlgo = 11;
bytes httpdnsClusterIdsJSON = 12; // HTTPDNS关联集群ID列表
}
// 删除用户