[API节点]支持HTTP API

This commit is contained in:
刘祥超
2021-01-01 20:48:30 +08:00
parent 6d9defcc9b
commit 68a039529d
7 changed files with 564 additions and 136 deletions

View File

@@ -0,0 +1,22 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// AccessToken相关服务
service APIAccessTokenService {
// 获取AccessToken
rpc GetAPIAccessToken (GetAPIAccessTokenRequest) returns (GetAPIAccessTokenResponse);
}
// 获取AccessToken
message GetAPIAccessTokenRequest {
string type = 1;
string accessKeyId = 2;
string accessKey = 3;
}
message GetAPIAccessTokenResponse {
string token = 1;
int64 expiresAt = 2;
}