cmd.api 867 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. PlayerConnectReq {
  13. CsId string `json:"cs_id"`
  14. }
  15. PlayerDisconnectReq {
  16. CsId string `json:"cs_id"`
  17. ChatId string `json:"chat_id"`
  18. }
  19. CsLoginInfo {
  20. UserName string `json:"user_name"`
  21. Password string `json:"password"`
  22. }
  23. CsConnectReq {
  24. PlayerId string `json:"palyer_id"`
  25. GameId string `json:"game_id"`
  26. }
  27. CsDisconnectReq {
  28. PlayerId string `json:"player_id"`
  29. ChatId string `json:"chat_id"`
  30. }
  31. ChatMsgReq {
  32. ChatId string `form:"chat_id"`
  33. Text string `form:"msg"`
  34. Pic string `form:"pic,optional"`
  35. }
  36. )