From 952651dd2f66f742263ba4f383d01d9fdc3ebf1c Mon Sep 17 00:00:00 2001 From: Vyacheslav1557 Date: Tue, 20 Aug 2024 16:34:43 +0500 Subject: [PATCH] feat: move token from body to metadata --- problem/v1/problem.proto | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/problem/v1/problem.proto b/problem/v1/problem.proto index 9399edb..9de9642 100644 --- a/problem/v1/problem.proto +++ b/problem/v1/problem.proto @@ -25,9 +25,8 @@ message CreateProblemRequest { } oneof msg { - string token = 1; - Problem problem = 2; - Test test = 3; + Problem problem = 1; + Test test = 2; } } message CreateProblemResponse { @@ -35,8 +34,7 @@ message CreateProblemResponse { } message ReadProblemRequest { - string token = 1; - int32 id = 2; + int32 id = 1; } message ReadProblemResponse { message Problem { @@ -48,8 +46,7 @@ message ReadProblemResponse { google.protobuf.Timestamp created_at = 6; google.protobuf.Timestamp updated_at = 7; } - string token = 1; - Problem problem = 2; + Problem problem = 1; } //message UpdateProblemRequest { @@ -65,6 +62,5 @@ message ReadProblemResponse { //} message DeleteProblemRequest { - string token = 1; - int32 id = 2; + int32 id = 1; } \ No newline at end of file