方法列表
创建AccessKey
admin
user
RPC
createUserAccessKey (CreateUserAccessKeyRequest) returns (CreateUserAccessKeyResponse)
HTTP
POST /UserAccessKeyService/createUserAccessKey
输入对象:CreateUserAccessKeyRequest:
{ // 用户ID int64 userId; // 管理员ID int64 adminId; // 描述(备注) string description; }
输出对象:CreateUserAccessKeyResponse:
查找所有的AccessKey
admin
user
RPC
findAllEnabledUserAccessKeys (FindAllEnabledUserAccessKeysRequest) returns (FindAllEnabledUserAccessKeysResponse)
HTTP
POST /UserAccessKeyService/findAllEnabledUserAccessKeys
输入对象:FindAllEnabledUserAccessKeysRequest:
{ // 用户ID int64 userId; // 管理员ID int64 adminId; }
输出对象:FindAllEnabledUserAccessKeysResponse:
删除AccessKey
admin
user
RPC
deleteUserAccessKey (DeleteUserAccessKeyRequest) returns (RPCSuccess)
HTTP
POST /UserAccessKeyService/deleteUserAccessKey
输入对象:DeleteUserAccessKeyRequest:
输出对象:RPCSuccess:
{ }
设置是否启用AccessKey
admin
user
RPC
updateUserAccessKeyIsOn (UpdateUserAccessKeyIsOnRequest) returns (RPCSuccess)
HTTP
POST /UserAccessKeyService/updateUserAccessKeyIsOn
输入对象:UpdateUserAccessKeyIsOnRequest:
{ int64 userAccessKeyId; // 是否启用 bool isOn; }
输出对象:RPCSuccess:
{ }
计算AccessKey数量
admin
user
RPC
countAllEnabledUserAccessKeys (CountAllEnabledUserAccessKeysRequest) returns (RPCCountResponse)
HTTP
POST /UserAccessKeyService/countAllEnabledUserAccessKeys
输入对象:CountAllEnabledUserAccessKeysRequest:
{ // 管理员ID int64 adminId; // 用户ID int64 userId; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }