管理端全部功能跑通

This commit is contained in:
robin
2026-02-27 10:35:22 +08:00
parent 4d275c921d
commit 150799f41d
263 changed files with 22664 additions and 4053 deletions

View File

@@ -0,0 +1,29 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
message HTTPDNSAccessLog {
int64 id = 1;
string requestId = 2;
int64 clusterId = 3;
int64 nodeId = 4;
string appId = 5;
string appName = 6;
string domain = 7;
string qtype = 8;
string clientIP = 9;
string clientRegion = 10;
string carrier = 11;
string sdkVersion = 12;
string os = 13;
string resultIPs = 14;
string status = 15;
string errorCode = 16;
int32 costMs = 17;
int64 createdAt = 18;
string day = 19;
string summary = 20;
string nodeName = 21;
string clusterName = 22;
}

View File

@@ -0,0 +1,20 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
message HTTPDNSApp {
int64 id = 1;
string name = 2;
string appId = 3;
bool isOn = 4;
int64 primaryClusterId = 5;
int64 backupClusterId = 6;
string sniMode = 7;
bool signEnabled = 8;
string signSecret = 9;
int64 signUpdatedAt = 10;
int64 createdAt = 11;
int64 updatedAt = 12;
int64 userId = 13;
}

View File

@@ -0,0 +1,18 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
message HTTPDNSCluster {
int64 id = 1;
bool isOn = 2;
bool isDefault = 3;
string name = 4;
string serviceDomain = 5;
int32 defaultTTL = 6;
int32 fallbackTimeoutMs = 7;
string installDir = 8;
bytes tlsPolicyJSON = 9;
int64 createdAt = 10;
int64 updatedAt = 11;
}

View File

@@ -0,0 +1,14 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
message HTTPDNSDomain {
int64 id = 1;
int64 appId = 2;
string domain = 3;
bool isOn = 4;
int64 createdAt = 5;
int64 updatedAt = 6;
int64 ruleCount = 7;
}

View File

@@ -0,0 +1,21 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
message HTTPDNSNode {
int64 id = 1;
int64 clusterId = 2;
string name = 3;
bool isOn = 4;
bool isUp = 5;
bool isInstalled = 6;
bool isActive = 7;
string uniqueId = 8;
string secret = 9;
string installDir = 10;
bytes statusJSON = 11;
bytes installStatusJSON = 12;
int64 createdAt = 13;
int64 updatedAt = 14;
}

View File

@@ -0,0 +1,31 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
message HTTPDNSRuleRecord {
int64 id = 1;
int64 ruleId = 2;
string recordType = 3;
string recordValue = 4;
int32 weight = 5;
int32 sort = 6;
}
message HTTPDNSCustomRule {
int64 id = 1;
int64 appId = 2;
int64 domainId = 3;
string ruleName = 4;
string lineScope = 5;
string lineCarrier = 6;
string lineRegion = 7;
string lineProvince = 8;
string lineContinent = 9;
string lineCountry = 10;
int32 ttl = 11;
bool isOn = 12;
int32 priority = 13;
int64 updatedAt = 14;
repeated HTTPDNSRuleRecord records = 15;
}

View File

@@ -0,0 +1,20 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
message HTTPDNSRuntimeLog {
int64 id = 1;
int64 clusterId = 2;
int64 nodeId = 3;
string level = 4;
string type = 5;
string module = 6;
string description = 7;
int64 count = 8;
string requestId = 9;
int64 createdAt = 10;
string day = 11;
string clusterName = 12;
string nodeName = 13;
}