Files
osirose-new/proto/session_service_api.proto
raven a9a6c52b00 - update: proto files to move common stuff into common proto files
- update: made changes for new proto paths
- add: skills to character table
- add: load and send skills to client from db
- add: chat proto
2025-02-27 22:11:17 -05:00

39 lines
814 B
Protocol Buffer

syntax = "proto3";
package session_service_api;
import "common.proto";
service SessionService {
rpc CreateSession (CreateSessionRequest) returns (SessionResponse);
rpc GetSession (GetSessionRequest) returns (SessionResponse);
rpc RefreshSession (GetSessionRequest) returns (SessionResponse);
rpc DeleteSession (DeleteSessionRequest) returns (common.Empty);
}
message CreateSessionRequest {
string session_id = 1;
int32 user_id = 2;
string username = 3;
int32 character_id = 4;
string ip_address = 5;
}
message GetSessionRequest {
string session_id = 1;
}
message DeleteSessionRequest {
string session_id = 1;
}
message SessionResponse {
string session_id = 1;
int32 user_id = 2;
string username = 3;
int32 character_id = 4;
string login_time = 5;
string ip_address = 6;
}