diff --git a/doc/game.md b/doc/game.md index 79d9a39..28670c5 100644 --- a/doc/game.md +++ b/doc/game.md @@ -45,7 +45,7 @@ ## 通知(服务器主动推送) - -### 角色信息修改 RoleUpdatePropertyRsp - -### 背包信息修改 RoleUpdateItemsRsp \ No newline at end of file +- 角色信息修改 RoleUpdatePropertyRsp +- 物品信息修改 RoleUpdateItemsRsp +- 添加装备 EquipmentAddRsp +- 删除装备 EquipmentDelRsp diff --git a/doc/gm.md b/doc/gm.md index e389486..b5ad18d 100644 --- a/doc/gm.md +++ b/doc/gm.md @@ -66,3 +66,24 @@ $ curl -i 'http://192.168.0.206:8880/addequip?role_id=1000002&id=0' ```shell {"code":0} ``` + +## 删除装备 [/delequip] +| 参数 | 类型 | 是否必须 | 备注 | +| --- | --- | --- | --- | +| id | string | Y | 服务器上的装备id | + +请求示例: +```shell +$ curl -i 'http://192.168.0.206:8880/delequip?role_id=1000002&id=0' +``` + +## 删除物品 [/delitem] +| 参数 | 类型 | 是否必须 | 备注 | +| --- | --- | --- | --- | +| id | string | Y | 物品id | +| count | int | Y | 需要删除的物品数量 | + +请求示例: +```shell +$ curl -i 'http://192.168.0.206:8880/delitem?role_id=1000002&id=1&count=1' +``` \ No newline at end of file diff --git a/game.proto b/game.proto index 8fa0d5b..5295c70 100644 --- a/game.proto +++ b/game.proto @@ -59,4 +59,8 @@ message RoleUpdateItemsRsp { //ResponseCmd EquipmentAddRsp message EquipmentAddRsp { models.Equipment equip = 1; -} \ No newline at end of file +} + +message EquipmentDelRsp { + string id = 1; +} diff --git a/protocode.proto b/protocode.proto index 8d27d12..b1627ce 100644 --- a/protocode.proto +++ b/protocode.proto @@ -17,5 +17,6 @@ enum ProtoCode RoleUpdatePropertyRsp = 9; RoleUpdateItemsRsp = 10; EquipmentAddRsp = 11; + EquipmentDelRsp = 12; } \ No newline at end of file -- libgit2 0.21.2