cmd.api 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. syntax = "v1"
  2. info(
  3. title: "用户操作实例"
  4. desc: "用户操作实例"
  5. author: "#Suyghur"
  6. )
  7. type (
  8. PlayerLoginInfo {
  9. PlayerId string `json:"player_id"`
  10. GameId string `json:"game_id"`
  11. }
  12. PlayerInfo {
  13. GameId string `json:"game_id"`
  14. PlayerId string `json:"player_id"`
  15. PlayerName string `json:"player_name"`
  16. PlayerPower string `json:"player_power"`
  17. PlayerVipLevel string `json:"player_vip_level"`
  18. PlayerRechargeAmount string `json:"player_recharge_amount"`
  19. ServerId string `json:"server_id"`
  20. ServerName string `json:"server_name"`
  21. }
  22. PlayerConnectReq {
  23. CsId string `json:"cs_id"`
  24. }
  25. CsLoginInfo {
  26. UserName string `json:"user_name"`
  27. Password string `json:"password"`
  28. }
  29. CsConnectReq {
  30. PlayerId string `json:"palyer_id"`
  31. GameId string `json:"game_id"`
  32. }
  33. CsDisconnectReq {
  34. PlayerId string `json:"player_id"`
  35. }
  36. ChatMsgReq {
  37. Text string `form:"msg"`
  38. Pic string `form:"pic,optional"`
  39. }
  40. )