feat: init

This commit is contained in:
Vyacheslav1557 2024-08-16 15:54:17 +05:00
commit b679e06274
5 changed files with 128 additions and 0 deletions

35
session/v1/session.proto Normal file
View file

@ -0,0 +1,35 @@
syntax = "proto3";
package proto.session.v1;
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);
}
message CreateSessionRequest {
string handle = 1;
string password = 2;
}
message CreateSessionResponse {
string token = 1;
}
message ReadSessionRequest {
string token = 1;
}
message ReadSessionResponse {
int32 user_id = 2;
}
message UpdateSessionRequest {
string token = 1;
}
message DeleteSessionRequest {
string token = 1;
}