You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.3 KiB

  1. ----------------------------- 好友 ---------------------------
  2. cc.exports.OpcodeFriendListGet = 10001
  3. cc.exports.OpcodeFriendListAck = 10002
  4. cc.exports.OpcodeFriendFollowReq = 10003
  5. cc.exports.OpcodeFriendFollowAck = 10004
  6. G_EapProtos["FriendListItem"] = {
  7. PID = {1, "sint32"},
  8. DPID = {2, "sint32"}, --好友
  9. Flag = {3, "sint32"}, --状态 1:关注
  10. Time = {4, "uint32"}, --关注时间
  11. }
  12. -- 获取好友列表
  13. G_EapProtos[OpcodeFriendListGet] = {
  14. PID = {1, "sint32"},
  15. Secret = {2, "string"},
  16. PageNum = {3, "sint32"},
  17. ItemNum = {4, "sint32"},
  18. }
  19. G_EapProtos[OpcodeFriendListAck] = {
  20. nRet = {1, "sint32"},
  21. PID = {2, "sint32"},
  22. PageNum = {3, "sint32"},
  23. ItemNum = {4, "sint32"},
  24. VecFreinds = {5, "FriendListItem", "repeated"}, --好友列表
  25. }
  26. -- 关注、取消关注好友
  27. G_EapProtos[OpcodeFriendFollowReq] = {
  28. PID = {1, "sint32"}, --本人
  29. Secret = {2, "string"},
  30. DPID = {3, "sint32"}, --操作对象
  31. Flag = {4, "sint32"}, -- 1:关注 2:取消关注
  32. }
  33. G_EapProtos[OpcodeFriendFollowAck] = {
  34. nRet = {1, "sint32"},
  35. PID = {2, "sint32"}, --本人
  36. DPID = {3, "sint32"}, --操作对象
  37. Flag = {4, "sint32"}, -- 1:关注 2:取消关注
  38. }