ms-auth/proto/session/v1/session.proto
Vyacheslav1557 5af1a98b49 feat: init
2024-07-15 02:26:34 +05:00

35 lines
727 B
Protocol Buffer

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;
}