- update: character service grpc protocol additions for create, delete and get character with stubs

This commit is contained in:
2025-01-05 17:16:02 -05:00
parent 7417d2d6dd
commit b01432501c
3 changed files with 33 additions and 3 deletions

View File

@@ -4,6 +4,9 @@ package character;
service CharacterService {
rpc GetCharacterList(GetCharacterListRequest) returns (GetCharacterListResponse);
rpc CreateCharacter(CreateCharacterRequest) returns (Empty);
rpc DeleteCharacter(DeleteCharacterRequest) returns (Empty);
rpc GetCharacter(GetCharacterRequest) returns (Empty);
}
message GetCharacterListRequest {
@@ -14,6 +17,19 @@ message GetCharacterListResponse {
repeated Character characters = 1;
}
message CreateCharacterRequest {
string user_id = 1;
}
message DeleteCharacterRequest {
string user_id = 1;
string char_id = 2;
}
message GetCharacterRequest {
string user_id = 1;
}
message Character {
string character_id = 1; // Unique ID for the character
string name = 2; // Name of the character
@@ -32,4 +48,6 @@ message EquippedItem {
int32 gem_option = 2;
int32 socket = 3;
int32 grade = 4;
}
}
message Empty {}