Skip to content

Commit

Permalink
fix: 将下游服务中使用usermeta的都改为使用userId进行简化
Browse files Browse the repository at this point in the history
  • Loading branch information
universero committed Oct 17, 2024
1 parent 0b90415 commit 8bb9664
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion openapi/charge/interface.proto
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ message DeleteFullInterfaceResp {

// 获取完整接口列表请求
message GetFullInterfaceReq {
basic.UserMeta user = 1;
string userId = 1;
basic.PaginationOptions paginationOptions = 2;
}

Expand Down
10 changes: 5 additions & 5 deletions openapi/user/auth.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import "basic/user.proto";
// core api调用platform注册得到basic后再来初始化用户
// 用户注册请求
message SignUpReq {
basic.UserMeta user = 1;
string userId = 1;
Role role = 2; // 注册的身份
}

Expand All @@ -34,7 +34,7 @@ message SignUpResp {

// 获取用户信息请求
message GetUserInfoReq {
basic.UserMeta user = 1;
string userId = 1;
}

// 获取用户信息响应
Expand All @@ -48,7 +48,7 @@ message GetUserInfoResp {

// 修改用户信息请求(用户名、状态)
message SetUserInfoReq {
basic.UserMeta user = 1;
string userId = 1;
optional string username = 2;
optional UserStatus status = 3;
}
Expand All @@ -65,7 +65,7 @@ message SetUserInfoResp {

// 签发一个密钥请求
message CreateKeyReq {
basic.UserMeta user = 1;
string userId = 1;
string name = 2;
repeated string hosts = 3;
}
Expand All @@ -78,7 +78,7 @@ message CreateKeyResp {

// 获取用户密钥列表请求
message GetKeysReq {
basic.UserMeta user = 1;
string userId = 1;
basic.PaginationOptions paginationOptions = 2;
}

Expand Down
2 changes: 1 addition & 1 deletion openapi/user/money.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import "basic/user.proto";

// 更改用户余额请求
message SetRemainReq {
basic.UserMeta user = 1;
string userId= 1;
int64 increment = 2; // 增量,减少则用负数
}

Expand Down

0 comments on commit 8bb9664

Please sign in to comment.