client2world_shop.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import "client2world_msg_type.proto";
  2. import "msg_type_def.proto";
  3. import "msg_info_def.proto";
  4. package client2world_protocols;
  5. // 购买商品
  6. message packetc2w_buy_commodity
  7. {
  8. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_buy_commodity];
  9. // 商品ID
  10. optional int32 commodityId = 2;
  11. }
  12. // 购买商品结果
  13. message packetw2c_buy_commodity_result
  14. {
  15. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_buy_commodity_result];
  16. // 购买结果
  17. optional int32 result = 2;
  18. // 商品ID
  19. optional int32 commodityId = 3;
  20. }
  21. // 抽取捕鱼王成长计划之新手转盘礼包
  22. message packetc2w_lottery_growth_gift
  23. {
  24. optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_lottery_growth_gift];
  25. }
  26. // 抽取捕鱼王成长计划之新手转盘礼包结果
  27. message packetw2c_lottery_growth_gift_result
  28. {
  29. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_lottery_growth_gift_result];
  30. //倍数结果
  31. optional int32 result = 2;
  32. }
  33. //校验苹果订单
  34. // message packetw2c_check_apple_order_form
  35. // {
  36. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_check_apple_order_form];
  37. // optional string apple = 2;
  38. // }
  39. // 使用道具
  40. // message packetc2w_req_use_item
  41. // {
  42. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_req_use_item];
  43. // optional int32 itemId = 2;
  44. // }
  45. // message packetw2c_req_use_item_result
  46. // {
  47. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_req_use_item_result];
  48. // // 使用结果
  49. // optional int32 result = 2;
  50. // optional int32 itemId = 3;
  51. // // 额外参数,如使用转转乐补偿 存储返回的金币
  52. // optional int32 exParam = 4;
  53. // }