mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-10 01:20:26 +08:00
自建DNS增加解析测试
This commit is contained in:
43
pkg/rpc/protos/service_ns_question_option.proto
Normal file
43
pkg/rpc/protos/service_ns_question_option.proto
Normal file
@@ -0,0 +1,43 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/rpc_messages.proto";
|
||||
import "models/model_ns_question_option.proto";
|
||||
|
||||
// DNS查询选项
|
||||
service NSQuestionOptionService {
|
||||
// 创建选项
|
||||
rpc createNSQuestionOption(CreateNSQuestionOptionRequest) returns (CreateNSQuestionOptionResponse);
|
||||
|
||||
// 读取选项
|
||||
rpc findNSQuestionOption(FindNSQuestionOptionRequest) returns (FindNSQuestionOptionResponse);
|
||||
|
||||
// 删除选项
|
||||
rpc deleteNSQuestionOption(DeleteNSQuestionOptionRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 创建选项
|
||||
message CreateNSQuestionOptionRequest {
|
||||
string name = 1;
|
||||
bytes valuesJSON = 2;
|
||||
}
|
||||
|
||||
message CreateNSQuestionOptionResponse {
|
||||
int64 nsQuestionOptionId = 1;
|
||||
}
|
||||
|
||||
// 读取选项
|
||||
message FindNSQuestionOptionRequest {
|
||||
int64 nsQuestionOptionId = 1;
|
||||
}
|
||||
|
||||
message FindNSQuestionOptionResponse {
|
||||
NSQuestionOption nsQuestionOption = 1;
|
||||
}
|
||||
|
||||
// 删除选项
|
||||
message DeleteNSQuestionOptionRequest {
|
||||
int64 nsQuestionOptionId = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user