Added SaveCharacter and UpdateSession function stubs
Updated proto message type names to better match usage Fixed compile errors due to type name changes
This commit is contained in:
@@ -2,11 +2,14 @@ syntax = "proto3";
|
||||
|
||||
package character_db_api;
|
||||
|
||||
import "character_common.proto";
|
||||
|
||||
service CharacterDbService {
|
||||
rpc GetCharacter (CharacterRequest) returns (Character);
|
||||
rpc GetCharacter (CharacterRequest) returns (CharacterItem);
|
||||
rpc GetCharacterList (CharacterListRequest) returns (CharacterListResponse);
|
||||
rpc CreateCharacter (CreateCharacterRequest) returns (CreateCharacterResponse);
|
||||
rpc DeleteCharacter (DeleteCharacterRequest) returns (DeleteCharacterResponse);
|
||||
rpc SaveCharacter (SaveCharacterRequest) returns (SaveCharacterResponse);
|
||||
}
|
||||
|
||||
message CharacterRequest {
|
||||
@@ -18,8 +21,24 @@ message CharacterListRequest {
|
||||
string user_id = 1;
|
||||
}
|
||||
|
||||
message CharacterItem {
|
||||
int32 id = 1;
|
||||
string user_id = 2;
|
||||
string name = 3;
|
||||
int64 money = 4;
|
||||
string inventory = 6;
|
||||
string stats = 7;
|
||||
string skills = 8;
|
||||
string looks = 9;
|
||||
string position = 10;
|
||||
string created_at = 11;
|
||||
string updated_at = 12;
|
||||
string deleted_at = 13;
|
||||
bool is_active = 14;
|
||||
}
|
||||
|
||||
message CharacterListResponse {
|
||||
repeated Character characters = 1;
|
||||
repeated CharacterItem characters = 1;
|
||||
}
|
||||
|
||||
message CreateCharacterRequest {
|
||||
@@ -48,18 +67,11 @@ message DeleteCharacterResponse {
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
message Character {
|
||||
int32 id = 1;
|
||||
string user_id = 2;
|
||||
string name = 3;
|
||||
int64 money = 4;
|
||||
string inventory = 6;
|
||||
string stats = 7;
|
||||
string skills = 8;
|
||||
string looks = 9;
|
||||
string position = 10;
|
||||
string created_at = 11;
|
||||
string updated_at = 12;
|
||||
string deleted_at = 13;
|
||||
bool is_active = 14;
|
||||
message SaveCharacterRequest {
|
||||
string session_id = 1;
|
||||
character_common.CharacterFull character = 2;
|
||||
}
|
||||
|
||||
message SaveCharacterResponse {
|
||||
bool success = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user