mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-16 05:46:34 +08:00
增加商业版认证校验API
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user