feat: move token from body to metadata

This commit is contained in:
Vyacheslav1557 2024-08-20 16:34:43 +05:00
parent 603a74b1c3
commit 952651dd2f

View file

@ -25,9 +25,8 @@ message CreateProblemRequest {
} }
oneof msg { oneof msg {
string token = 1; Problem problem = 1;
Problem problem = 2; Test test = 2;
Test test = 3;
} }
} }
message CreateProblemResponse { message CreateProblemResponse {
@ -35,8 +34,7 @@ message CreateProblemResponse {
} }
message ReadProblemRequest { message ReadProblemRequest {
string token = 1; int32 id = 1;
int32 id = 2;
} }
message ReadProblemResponse { message ReadProblemResponse {
message Problem { message Problem {
@ -48,8 +46,7 @@ message ReadProblemResponse {
google.protobuf.Timestamp created_at = 6; google.protobuf.Timestamp created_at = 6;
google.protobuf.Timestamp updated_at = 7; google.protobuf.Timestamp updated_at = 7;
} }
string token = 1; Problem problem = 1;
Problem problem = 2;
} }
//message UpdateProblemRequest { //message UpdateProblemRequest {
@ -65,6 +62,5 @@ message ReadProblemResponse {
//} //}
message DeleteProblemRequest { message DeleteProblemRequest {
string token = 1; int32 id = 1;
int32 id = 2;
} }