contracts/session/v1/session.proto
Vyacheslav1557 e6de2af416 feat:
2024-10-13 19:03:03 +05:00

28 lines
598 B
Protocol Buffer

syntax = "proto3";
package session.v1;
option go_package = "/session/v1;sessionv1";
import "google/protobuf/empty.proto";
service SessionService {
rpc Create (CreateSessionRequest) returns (CreateSessionResponse);
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 UpdateSessionRequest {
string token = 1;
}
message DeleteSessionRequest {
string token = 1;
}