diff --git a/account.proto b/account.proto index 78e5d8c..7736192 100644 --- a/account.proto +++ b/account.proto @@ -20,4 +20,10 @@ message Register { string phone = 1; // @inject_tag: binding:"required" string password = 2; // @inject_tag: binding:"required" string code = 3; // @inject_tag: binding:"required" +} + +message UpdateVersion { + int32 i = 1; + int32 x = 2; + int32 y = 3; } \ No newline at end of file diff --git a/game.proto b/game.proto index adb09b7..e8e208c 100644 --- a/game.proto +++ b/game.proto @@ -53,8 +53,8 @@ message RoleRsp { repeated models.Equipment equipments = 5; } -//ResponseCmd RoleUpdatePropertyRsp -message RoleUpdatePropertyRsp { +//ResponseCmd RoleUpdatePropertyNty +message RoleUpdatePropertyNty{ repeated int32 id = 1; models.Role role = 2; } @@ -98,7 +98,7 @@ message EquipmentDelReq { } //ResponseCmd EquipmentAddRsp -message EquipmentAddRsp { +message EquipmentAddNty{ models.Equipment equip = 1; } diff --git a/models.proto b/models.proto index d340122..48268a2 100644 --- a/models.proto +++ b/models.proto @@ -10,6 +10,11 @@ message Account { string uid = 3; } +message Config { + string id = 1; // @inject_tag: index:"unique" pri:"1" + string version = 2; +} + message Hero { string id = 1; // @inject_tag: index:"unique" pri:"1" string role_id = 2; diff --git a/protocode.proto b/protocode.proto index 9640864..ef4ecfb 100644 --- a/protocode.proto +++ b/protocode.proto @@ -16,13 +16,9 @@ enum ProtoCode RoleEndBattleRpc = 8; EquipmentDelRpc = 9; HeroUpLevelRpc = 10; - DisConnectNty= 11; - RoleUpdateItemsNty= 12; - HeartRsp = 13; - RoleRsp = 14; - RoleUpdatePropertyRsp = 15; - RoleEndBattleRsp = 16; - EquipmentAddRsp = 17; - HeroUpLevelRsp = 18; + DisConnectNty = 11; + RoleUpdatePropertyNty = 12; + RoleUpdateItemsNty = 13; + EquipmentAddNty = 14; } \ No newline at end of file -- libgit2 0.21.2