Commit 0267a99aa0844d47c15bdb257825e69742c90130
1 parent
df901aae
fix: 删除装备 删除物品请求
Showing
3 changed files
with
22 additions
and
7 deletions
Show diff stats
doc/game.md
| @@ -43,9 +43,18 @@ | @@ -43,9 +43,18 @@ | ||
| 43 | | --- | --- | | 43 | | --- | --- | |
| 44 | |3|装备未获得| | 44 | |3|装备未获得| |
| 45 | 45 | ||
| 46 | +### 删除物品 RoleClearItemsReq | ||
| 47 | +| errorCode 返回值| 描述 | | ||
| 48 | +| --- | --- | | ||
| 49 | +|3|删除失败| | ||
| 50 | + | ||
| 51 | +### 删除装备 EquipmentDelReq | ||
| 52 | +| errorCode 返回值| 描述 | | ||
| 53 | +| --- | --- | | ||
| 54 | +|3|删除失败| | ||
| 55 | + | ||
| 46 | 56 | ||
| 47 | ## 通知(服务器主动推送) | 57 | ## 通知(服务器主动推送) |
| 48 | - 角色信息修改 RoleUpdatePropertyRsp | 58 | - 角色信息修改 RoleUpdatePropertyRsp |
| 49 | - 物品信息修改 RoleUpdateItemsRsp | 59 | - 物品信息修改 RoleUpdateItemsRsp |
| 50 | - 添加装备 EquipmentAddRsp | 60 | - 添加装备 EquipmentAddRsp |
| 51 | -- 删除装备 EquipmentDelRsp |
game.proto
| @@ -56,11 +56,16 @@ message RoleUpdateItemsRsp { | @@ -56,11 +56,16 @@ message RoleUpdateItemsRsp { | ||
| 56 | string items = 1; | 56 | string items = 1; |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | -//ResponseCmd EquipmentAddRsp | ||
| 60 | -message EquipmentAddRsp { | ||
| 61 | - models.Equipment equip = 1; | 59 | +message RoleClearItemsReq{ |
| 60 | + string id = 1; | ||
| 61 | + int32 count = 2; | ||
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | -message EquipmentDelRsp { | 64 | +message EquipmentDelReq { |
| 65 | string id = 1; | 65 | string id = 1; |
| 66 | } | 66 | } |
| 67 | + | ||
| 68 | +//ResponseCmd EquipmentAddRsp | ||
| 69 | +message EquipmentAddRsp { | ||
| 70 | + models.Equipment equip = 1; | ||
| 71 | +} |
protocode.proto
| @@ -16,7 +16,8 @@ enum ProtoCode | @@ -16,7 +16,8 @@ enum ProtoCode | ||
| 16 | RoleRsp = 8; | 16 | RoleRsp = 8; |
| 17 | RoleUpdatePropertyRsp = 9; | 17 | RoleUpdatePropertyRsp = 9; |
| 18 | RoleUpdateItemsRsp = 10; | 18 | RoleUpdateItemsRsp = 10; |
| 19 | - EquipmentAddRsp = 11; | ||
| 20 | - EquipmentDelRsp = 12; | 19 | + RoleClearItemsReq = 11; |
| 20 | + EquipmentDelReq = 12; | ||
| 21 | + EquipmentAddRsp = 13; | ||
| 21 | 22 | ||
| 22 | } | 23 | } |
| 23 | \ No newline at end of file | 24 | \ No newline at end of file |