finclip-app-manager/infrastructure/protobuf/proto/mop_domain_manager_request....

109 lines
2.0 KiB
Protocol Buffer
Raw Normal View History

2023-10-31 14:07:26 +08:00
syntax = "proto3";
package pb;
option go_package = "./;pb";
import "common.proto";
service MopDomainManager {
rpc GetAllDomainInternal (GetAllDomainInternalReq) returns (GetAllDomainInternalRsp) {}
rpc GetAllDomainInternalV2 (GetAllDomainInternalV2Req) returns (GetAllDomainInternalV2Rsp) {}
rpc GetOrganDomainsWithCrt (GetOrganDomainsWithCrtReq) returns (GetOrganDomainsWithCrtRsp) {}
}
//接口一
message GetAllDomainInternalReq {
string appId = 1;
}
message GetAllDomainInternalRsp {
CommonResult result = 1;
message DATA {
message SERVICE {
repeated string request = 1;
repeated string socket = 2;
repeated string download = 3;
repeated string upload = 4;
}
SERVICE service = 2;
message BUSINESS {
repeated string domains = 1;
}
BUSINESS business = 3;
message WHITELIST {
repeated string domains = 1;
}
WHITELIST whitelist = 4;
}
DATA data = 2;
}
message GetAllDomainInternalV2Req {
string organId = 1;
}
message GetAllDomainInternalV2Rsp {
CommonResult result = 1;
message DATA {
message SERVICE {
repeated string request = 1;
repeated string socket = 2;
repeated string download = 3;
repeated string upload = 4;
}
SERVICE service = 2;
message BUSINESS {
repeated string domains = 1;
}
BUSINESS business = 3;
message WHITELIST {
repeated string domains = 1;
}
WHITELIST whitelist = 4;
message BLACKLIST {
repeated string domains = 1;
}
BLACKLIST blacklist = 5;
}
DATA data = 2;
}
message GetOrganDomainsWithCrtReq {
string organId = 1;
message DomainValidate {
string md5 = 1;
bool expired = 2;
}
map<string, DomainValidate> validateDomainCrt = 2;
}
message GetOrganDomainsWithCrtRsp {
CommonResult result = 1;
message DomainWithCrt {
string domain = 1;
string crt = 2;
bool expired = 3;
}
repeated DomainWithCrt data = 2;
}