From 33856fdad2a50061a942a67354dbd338b9032662 Mon Sep 17 00:00:00 2001 From: Vyacheslav1557 Date: Wed, 9 Oct 2024 22:11:40 +0500 Subject: [PATCH] fix: add token to metadata --- user/v1/user.proto | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/user/v1/user.proto b/user/v1/user.proto index 316bfbc..ae09d30 100644 --- a/user/v1/user.proto +++ b/user/v1/user.proto @@ -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; } \ No newline at end of file