增加商业版认证校验API

This commit is contained in:
GoEdgeLab
2021-09-16 10:34:00 +08:00
parent b581dd46c0
commit 73c325b6fc
2 changed files with 226 additions and 31 deletions

View File

@@ -16,6 +16,9 @@ service AuthorityKeyService {
// 重置Key
rpc resetAuthorityKey (ResetAuthorityKeyRequest) returns (RPCSuccess);
// 校验Key
rpc validateAuthorityKey(ValidateAuthorityKeyRequest) returns (ValidateAuthorityKeyResponse);
}
// 设置Key
@@ -40,4 +43,14 @@ message ReadAuthorityKeyResponse {
// 重置Key
message ResetAuthorityKeyRequest {
}
// 校验Key
message ValidateAuthorityKeyRequest {
string key = 1;
}
message ValidateAuthorityKeyResponse {
bool isOk = 1;
string error = 2;
}