fix: add token to metadata

This commit is contained in:
Vyacheslav1557 2024-10-09 22:11:40 +05:00
parent 74332e3305
commit 33856fdad2

View file

@ -1,7 +1,6 @@
syntax = "proto3";
package user.v1;
option go_package = "/user/v1;userv1";
import "google/protobuf/timestamp.proto";
import "google/protobuf/empty.proto";
@ -29,16 +28,14 @@ message CreateUserRequest {
Role role = 5;
}
string token = 1;
User user = 2;
User user = 1;
}
message CreateUserResponse {
int32 id = 1;
}
message ReadUserRequest {
string token = 1;
int32 id = 2;
int32 id = 1;
}
message ReadUserResponse {
message User {
@ -63,11 +60,9 @@ message UpdateUserRequest {
optional Role role = 6;
}
string token = 1;
User user = 2;
User user = 1;
}
message DeleteUserRequest {
string token = 1;
int32 id = 2;
int32 id = 1;
}