- update: character service grpc protocol additions for create, delete and get character with stubs
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user