fix: add token to metadata
This commit is contained in:
parent
74332e3305
commit
33856fdad2
1 changed files with 4 additions and 9 deletions
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue