Updated proto message type names to better match usage Fixed compile errors due to type name changes
38 lines
747 B
Protocol Buffer
38 lines
747 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package session_db_api;
|
|
|
|
service SessionService {
|
|
rpc GetSession(GetSessionRequest) returns (GetSessionResponse);
|
|
rpc RefreshSession(RefreshSessionRequest) returns (RefreshSessionResponse);
|
|
rpc UpdateSession(UpdateSessionRequest) returns (UpdateSessionResponse);
|
|
}
|
|
|
|
message GetSessionRequest {
|
|
string session_id = 1;
|
|
}
|
|
|
|
message GetSessionResponse {
|
|
string session_id = 1;
|
|
string user_id = 2;
|
|
}
|
|
|
|
message RefreshSessionRequest {
|
|
string session_id = 1;
|
|
}
|
|
|
|
message RefreshSessionResponse {
|
|
bool valid = 1;
|
|
}
|
|
|
|
message UpdateSessionRequest {
|
|
string session_id = 1;
|
|
string user_id = 2;
|
|
string character_id = 3;
|
|
string map_id = 4;
|
|
string client_id = 5;
|
|
}
|
|
|
|
message UpdateSessionResponse {
|
|
bool success = 1;
|
|
} |