diff --git a/proto/character.proto b/proto/character.proto index 772a51c..ae98906 100644 --- a/proto/character.proto +++ b/proto/character.proto @@ -3,14 +3,33 @@ syntax = "proto3"; package character; service CharacterService { - rpc GetCharacterList(CharacterListRequest) returns (CharacterListResponse); + rpc GetCharacterList(GetCharacterListRequest) returns (GetCharacterListResponse); } -message CharacterListRequest { - string token = 1; - string user_id = 2; +message GetCharacterListRequest { + string user_id = 1; } -message CharacterListResponse { - int32 count = 1; +message GetCharacterListResponse { + repeated Character characters = 1; } + +message Character { + string character_id = 1; // Unique ID for the character + string name = 2; // Name of the character + int32 level = 3; // Character's level + int32 race = 4; // Character's level + int32 job = 5; // Character's class or type + int64 last_played = 6; // Last played timestamp (Unix time) + int64 delete_time = 7; // Time until character deletion (seconds) + int32 face = 8; // Character's face + int32 hair = 9; // Character's hair + repeated EquippedItem items = 10; +} + +message EquippedItem { + int32 id = 1; + int32 gem_option = 2; + int32 socket = 3; + int32 grade = 4; +} \ No newline at end of file