增加NS域名分组、批量添加域名和记录接口

This commit is contained in:
GoEdgeLab
2022-08-06 20:29:26 +08:00
parent dabfbe2849
commit 29c6a16fd1
29 changed files with 8316 additions and 5874 deletions

View File

@@ -4,6 +4,7 @@ option go_package = "./pb";
package pb;
import "models/model_ns_cluster.proto";
import "models/model_ns_domain_group.proto";
import "models/model_user.proto";
// DNS域名
@@ -15,7 +16,9 @@ message NSDomain {
bool isDeleted = 5;
int64 version = 6;
bytes tsigJSON = 7;
repeated int64 nsDomainGroupIds = 8;
NSCluster nsCluster = 30;
User user = 31;
repeated NSDomainGroup nsDomainGroups = 32;
}

View File

@@ -0,0 +1,12 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 域名分组
message NSDomainGroup {
int64 id = 1;
string name = 2;
bool isOn = 3;
int64 userId = 4;
}