方法列表
创建用户
admin
RPC
createUser (CreateUserRequest) returns (CreateUserResponse)
HTTP
POST /UserService/createUser
输入对象:CreateUserRequest:
输出对象:CreateUserResponse:
{ // 用户ID int64 userId; }
注册用户
user
RPC
registerUser (RegisterUserRequest) returns (RegisterUserResponse)
HTTP
POST /UserService/registerUser
输入对象:RegisterUserRequest:
输出对象:RegisterUserResponse:
{ // 用户ID int64 userId; // 是否需要激活邮件 bool requireEmailVerification; }
审核用户
admin
RPC
verifyUser (VerifyUserRequest) returns (RPCSuccess)
HTTP
POST /UserService/verifyUser
输入对象:VerifyUserRequest:
输出对象:RPCSuccess:
{ }
修改用户
admin
RPC
updateUser (UpdateUserRequest) returns (RPCSuccess)
HTTP
POST /UserService/updateUser
输入对象:UpdateUserRequest:
{ // 用户ID int64 userId; string username; string password; string fullname; string mobile; string tel; string email; string remark; // 是否启用 bool isOn; // 集群 int64 nodeClusterId; // 是否修改已有网站所在的集群 bool updateServersCluster; string bandwidthAlgo; }
输出对象:RPCSuccess:
{ }
删除用户
admin
RPC
deleteUser (DeleteUserRequest) returns (RPCSuccess)
HTTP
POST /UserService/deleteUser
输入对象:DeleteUserRequest:
{ // 用户ID int64 userId; }
输出对象:RPCSuccess:
{ }
计算用户数量
admin
RPC
countAllEnabledUsers (CountAllEnabledUsersRequest) returns (RPCCountResponse)
HTTP
POST /UserService/countAllEnabledUsers
输入对象:CountAllEnabledUsersRequest:
{ // 关键词 string keyword; bool isVerifying; // 手机号是否已验证,1表示已验证,0表示未验证,-1表示所有状态 int32 mobileIsVerified; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页用户
admin
RPC
listEnabledUsers (ListEnabledUsersRequest) returns (ListEnabledUsersResponse)
HTTP
POST /UserService/listEnabledUsers
输入对象:ListEnabledUsersRequest:
{ // 关键词 string keyword; bool isVerifying; // 手机号是否已验证,1表示已验证,0表示未验证,-1表示所有状态 int32 mobileIsVerified; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListEnabledUsersResponse:
查询单个用户信息
admin
RPC
findEnabledUser (FindEnabledUserRequest) returns (FindEnabledUserResponse)
HTTP
POST /UserService/findEnabledUser
输入对象:FindEnabledUserRequest:
{ // 用户ID int64 userId; }
输出对象:FindEnabledUserResponse:
{ User user; }
检查用户名是否存在
user
admin
RPC
checkUserUsername (CheckUserUsernameRequest) returns (CheckUserUsernameResponse)
HTTP
POST /UserService/checkUserUsername
输入对象:CheckUserUsernameRequest:
{ // 用户ID int64 userId; string username; }
输出对象:CheckUserUsernameResponse:
登录
admin
RPC
loginUser (LoginUserRequest) returns (LoginUserResponse)
HTTP
POST /UserService/loginUser
输入对象:LoginUserRequest:
输出对象:LoginUserResponse:
{ // 用户ID int64 userId; bool isOk; string message; }
修改用户基本信息
user
RPC
updateUserInfo (UpdateUserInfoRequest) returns (RPCSuccess)
HTTP
POST /UserService/updateUserInfo
输入对象:UpdateUserInfoRequest:
输出对象:RPCSuccess:
{ }
修改用户登录信息
user
RPC
updateUserLogin (UpdateUserLoginRequest) returns (RPCSuccess)
HTTP
POST /UserService/updateUserLogin
输入对象:UpdateUserLoginRequest:
输出对象:RPCSuccess:
{ }
取得用户Dashboard数据
admin
user
RPC
composeUserDashboard (ComposeUserDashboardRequest) returns (ComposeUserDashboardResponse)
HTTP
POST /UserService/composeUserDashboard
输入对象:ComposeUserDashboardRequest:
{ // 用户ID int64 userId; }
输出对象:ComposeUserDashboardResponse:
获取用户所在的集群ID
admin
RPC
findUserNodeClusterId (FindUserNodeClusterIdRequest) returns (FindUserNodeClusterIdResponse)
HTTP
POST /UserService/findUserNodeClusterId
输入对象:FindUserNodeClusterIdRequest:
{ // 用户ID int64 userId; }
输出对象:FindUserNodeClusterIdResponse:
{ // 集群ID int64 nodeClusterId; }
设置单个用户能使用的功能
admin
RPC
updateUserFeatures (UpdateUserFeaturesRequest) returns (RPCSuccess)
HTTP
POST /UserService/updateUserFeatures
输入对象:UpdateUserFeaturesRequest:
{ // 用户ID int64 userId; []string featureCodes; }
输出对象:RPCSuccess:
{ }
设置所有用户能使用的功能
admin
RPC
updateAllUsersFeatures (UpdateAllUsersFeaturesRequest) returns (RPCSuccess)
HTTP
POST /UserService/updateAllUsersFeatures
输入对象:UpdateAllUsersFeaturesRequest:
输出对象:RPCSuccess:
{ }
获取用户所有的功能列表
admin
RPC
findUserFeatures (FindUserFeaturesRequest) returns (FindUserFeaturesResponse)
HTTP
POST /UserService/findUserFeatures
输入对象:FindUserFeaturesRequest:
{ // 用户ID int64 userId; }
输出对象:FindUserFeaturesResponse:
获取所有的功能定义
admin
RPC
findAllUserFeatureDefinitions (FindAllUserFeatureDefinitionsRequest) returns (FindAllUserFeatureDefinitionsResponse)
HTTP
POST /UserService/findAllUserFeatureDefinitions
输入对象:FindAllUserFeatureDefinitionsRequest:
{ }
输出对象:FindAllUserFeatureDefinitionsResponse:
组合全局的看板数据
admin
RPC
composeUserGlobalBoard (ComposeUserGlobalBoardRequest) returns (ComposeUserGlobalBoardResponse)
HTTP
POST /UserService/composeUserGlobalBoard
输入对象:ComposeUserGlobalBoardRequest:
{ }
输出对象:ComposeUserGlobalBoardResponse:
根据用户名检查是否需要输入OTP
user
RPC
checkUserOTPWithUsername (CheckUserOTPWithUsernameRequest) returns (CheckUserOTPWithUsernameResponse)
HTTP
POST /UserService/checkUserOTPWithUsername
输入对象:CheckUserOTPWithUsernameRequest:
输出对象:CheckUserOTPWithUsernameResponse:
读取用户计费信息
admin
RPC
findUserPriceInfo (FindUserPriceInfoRequest) returns (FindUserPriceInfoResponse)
HTTP
POST /UserService/findUserPriceInfo
输入对象:FindUserPriceInfoRequest:
{ // 用户ID int64 userId; }
输出对象:FindUserPriceInfoResponse:
修改用户计费方式
admin
RPC
updateUserPriceType (UpdateUserPriceTypeRequest) returns (RPCSuccess)
HTTP
POST /UserService/updateUserPriceType
输入对象:UpdateUserPriceTypeRequest:
{ // 用户ID int64 userId; string priceType; }
输出对象:RPCSuccess:
{ }
修改用户计费周期
admin
RPC
updateUserPricePeriod (UpdateUserPricePeriodRequest) returns (RPCSuccess)
HTTP
POST /UserService/updateUserPricePeriod
输入对象:UpdateUserPricePeriodRequest:
{ // 用户ID int64 userId; string pricePeriod; }
输出对象:RPCSuccess:
{ }
更新用户服务可用状态
admin
RPC
renewUserServersState (RenewUserServersStateRequest) returns (RenewUserServersStateResponse)
HTTP
POST /UserService/renewUserServersState
输入对象:RenewUserServersStateRequest:
{ // 用户ID int64 userId; }
输出对象:RenewUserServersStateResponse: