command_siginwheel.go 644 B

12345678910111213141516171819202122232425262728293031
  1. package client
  2. import (
  3. "encoding/json"
  4. )
  5. func GetSigninWheelInfo(userId int) string {
  6. msg := "GetSigninWheelInfo"
  7. var req Request_base
  8. req.UserId = userId
  9. d, _ := json.Marshal(req)
  10. resp := DoRequest(msg, string(d))
  11. return resp.Data
  12. }
  13. func DoSigninWheel(userId int, ipAddress string, userGold int) string {
  14. msg := "DoSigninWheel"
  15. var req Request_SigninWheel
  16. req.UserId = userId
  17. req.IpAddress = ipAddress
  18. req.UserGold = userGold
  19. d, _ := json.Marshal(req)
  20. resp := DoRequest(msg, string(d))
  21. return resp.Data
  22. }
  23. func GetSigninWheelHistory() string {
  24. msg := "GetSigninWheelHistory"
  25. resp := DoRequest(msg, "")
  26. return resp.Data
  27. }