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