mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-16 05:46:34 +08:00
DNS API支持查询多个同名记录
This commit is contained in:
@@ -50,6 +50,10 @@ service NSRecordService {
|
||||
// 使用名称和类型查询单个记录信息
|
||||
rpc findNSRecordWithNameAndType(FindNSRecordWithNameAndTypeRequest) returns (FindNSRecordWithNameAndTypeResponse);
|
||||
|
||||
// 使用名称和类型查询多个记录信息
|
||||
rpc findNSRecordsWithNameAndType(FindNSRecordsWithNameAndTypeRequest) returns (FindNSRecordsWithNameAndTypeResponse);
|
||||
|
||||
|
||||
// 根据版本列出一组记录
|
||||
rpc listNSRecordsAfterVersion (ListNSRecordsAfterVersionRequest) returns (ListNSRecordsAfterVersionResponse);
|
||||
}
|
||||
@@ -227,6 +231,17 @@ message FindNSRecordWithNameAndTypeResponse {
|
||||
NSRecord nsRecord = 1;
|
||||
}
|
||||
|
||||
// 使用名称和类型查询多个记录信息
|
||||
message FindNSRecordsWithNameAndTypeRequest {
|
||||
int64 nsDomainId = 1;
|
||||
string name = 2;
|
||||
string type = 3;
|
||||
}
|
||||
|
||||
message FindNSRecordsWithNameAndTypeResponse {
|
||||
repeated NSRecord nsRecords = 1;
|
||||
}
|
||||
|
||||
// 根据版本列出一组记录
|
||||
message ListNSRecordsAfterVersionRequest {
|
||||
int64 version = 1;
|
||||
|
||||
Reference in New Issue
Block a user