Skip to content

Commit

Permalink
Update user.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
nordew committed Jan 27, 2024
1 parent 6618c4c commit 3aa4464
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions proto/user/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,28 @@ message CreateUserRequest {
string name = 1;
string email = 2;
string password = 3;
string password_confirm = 4;
Role role = 5;
}

enum Role {
USER = 0;
ADMIN = 1;
}

message CreateUserResponse {
string id = 1;
}

message GetUserRequest {
string id = 1;
string email = 1;
}

message GetUserResponse {
string id = 1;
string email = 2;
Role role = 3;
google.protobuf.Timestamp created_at = 4;
google.protobuf.Timestamp updated_at = 5;
string name = 2;
string email = 3;
int32 role = 4;
google.protobuf.Timestamp created_at = 5;
google.protobuf.Timestamp updated_at = 6;
}

message UpdateUserRequest {
string email = 1;
google.protobuf.StringValue name = 2;
google.protobuf.StringValue name = 3;
string password = 3;
}

Expand Down

0 comments on commit 3aa4464

Please sign in to comment.