添加DNS账号时自动读取DNS服务商下域名

This commit is contained in:
刘祥超
2021-08-19 14:26:19 +08:00
parent 433df9dddb
commit 5edfd9e4c9
4 changed files with 298 additions and 99 deletions

View File

@@ -20,4 +20,5 @@ message DNSDomain {
repeated DNSRoute routes = 10;
int64 providerId = 11;
int64 countNodeClusters = 12;
bool isUp = 15;
}

View File

@@ -44,6 +44,9 @@ service DNSDomainService {
// 检查域名是否在记录中
rpc existDNSDomainRecord (ExistDNSDomainRecordRequest) returns (ExistDNSDomainRecordResponse);
// 从服务商同步域名
rpc syncDNSDomainsFromProvider(SyncDNSDomainsFromProviderRequest) returns (SyncDNSDomainsFromProviderResponse);
}
// 创建域名
@@ -150,4 +153,13 @@ message ExistDNSDomainRecordRequest {
message ExistDNSDomainRecordResponse {
bool isOk = 1;
}
// 从服务商同步域名
message SyncDNSDomainsFromProviderRequest {
int64 dnsProviderId = 1;
}
message SyncDNSDomainsFromProviderResponse {
bool hasChanges = 1;
}