feat:
This commit is contained in:
parent
33856fdad2
commit
e6de2af416
3 changed files with 75 additions and 40 deletions
|
@ -7,7 +7,6 @@ import "google/protobuf/empty.proto";
|
|||
|
||||
service SessionService {
|
||||
rpc Create (CreateSessionRequest) returns (CreateSessionResponse);
|
||||
rpc Read (ReadSessionRequest) returns (ReadSessionResponse);
|
||||
rpc Update (UpdateSessionRequest) returns (google.protobuf.Empty);
|
||||
rpc Delete (DeleteSessionRequest) returns (google.protobuf.Empty);
|
||||
}
|
||||
|
@ -20,13 +19,6 @@ message CreateSessionResponse {
|
|||
string token = 1;
|
||||
}
|
||||
|
||||
message ReadSessionRequest {
|
||||
string token = 1;
|
||||
}
|
||||
message ReadSessionResponse {
|
||||
int32 user_id = 2;
|
||||
}
|
||||
|
||||
message UpdateSessionRequest {
|
||||
string token = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue