Skip to content

Commit

Permalink
chore: remove unused user id
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Jan 10, 2025
1 parent 3081015 commit 8b7e9f5
Show file tree
Hide file tree
Showing 16 changed files with 81 additions and 89 deletions.
6 changes: 3 additions & 3 deletions proto/api/v1/inbox_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ message Inbox {
// The name of the inbox.
// Format: inboxes/{id}
string name = 1;
// Format: users/{id}
// Format: users/{user}
string sender = 2;
// Format: users/{id}
// Format: users/{user}
string receiver = 3;

enum Status {
Expand All @@ -59,7 +59,7 @@ message Inbox {
}

message ListInboxesRequest {
// Format: users/{id}
// Format: users/{user}
string user = 1;

// The maximum number of inbox to return.
Expand Down
4 changes: 2 additions & 2 deletions proto/api/v1/memo_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ message Memo {
State state = 3;

// The name of the creator.
// Format: users/{id}
// Format: users/{user}
string creator = 4;

google.protobuf.Timestamp create_time = 5;
Expand Down Expand Up @@ -222,7 +222,7 @@ message ListMemosRequest {
string page_token = 2;

// Filter is used to filter memos returned in the list.
// Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
// Format: "creator == 'users/{user}' && visibilities == ['PUBLIC', 'PROTECTED']"
string filter = 3;

// The view of the memo.
Expand Down
2 changes: 1 addition & 1 deletion proto/api/v1/reaction_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ message Reaction {
int32 id = 1;

// The name of the creator.
// Format: users/{id}
// Format: users/{user}
string creator = 2;

string content_id = 3;
Expand Down
21 changes: 9 additions & 12 deletions proto/api/v1/user_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,9 @@ service UserService {

message User {
// The name of the user.
// Format: users/{id}
// Format: users/{user}. {user} is a system-generated auto-increment id.
string name = 1;

// The system generated uid of the user.
int32 id = 2;

enum Role {
ROLE_UNSPECIFIED = 0;
HOST = 1;
Expand Down Expand Up @@ -139,13 +136,13 @@ message SearchUsersResponse {

message GetUserRequest {
// The name of the user.
// Format: users/{id}
// Format: users/{user}
string name = 1;
}

message GetUserAvatarBinaryRequest {
// The name of the user.
// Format: users/{id}
// Format: users/{user}
string name = 1;

// The raw HTTP body is bound to this field.
Expand All @@ -164,13 +161,13 @@ message UpdateUserRequest {

message DeleteUserRequest {
// The name of the user.
// Format: users/{id}
// Format: users/{user}
string name = 1;
}

message UserSetting {
// The name of the user.
// Format: users/{id}
// Format: users/{user}
string name = 1;
// The preferred locale of the user.
string locale = 2;
Expand All @@ -182,7 +179,7 @@ message UserSetting {

message GetUserSettingRequest {
// The name of the user.
// Format: users/{id}
// Format: users/{user}
string name = 1;
}

Expand All @@ -201,7 +198,7 @@ message UserAccessToken {

message ListUserAccessTokensRequest {
// The name of the user.
// Format: users/{id}
// Format: users/{user}
string name = 1;
}

Expand All @@ -211,7 +208,7 @@ message ListUserAccessTokensResponse {

message CreateUserAccessTokenRequest {
// The name of the user.
// Format: users/{id}
// Format: users/{user}
string name = 1;

string description = 2;
Expand All @@ -221,7 +218,7 @@ message CreateUserAccessTokenRequest {

message DeleteUserAccessTokenRequest {
// The name of the user.
// Format: users/{id}
// Format: users/{user}
string name = 1;
// access_token is the access token to delete.
string access_token = 2;
Expand Down
2 changes: 1 addition & 1 deletion proto/api/v1/workspace_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ service WorkspaceService {

message WorkspaceProfile {
// The name of instance owner.
// Format: "users/{id}"
// Format: users/{user}
string owner = 1;
// version is the current version of instance
string version = 2;
Expand Down
6 changes: 3 additions & 3 deletions proto/gen/api/v1/inbox_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions proto/gen/api/v1/memo_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/gen/api/v1/reaction_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 12 additions & 22 deletions proto/gen/api/v1/user_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/gen/api/v1/workspace_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8b7e9f5

Please sign in to comment.