command_signin.go 590 B

123456789101112131415161718192021222324252627282930
  1. package client
  2. import (
  3. "encoding/json"
  4. )
  5. func GetSigninInfo(userId int) Response {
  6. msg := "GetSigninInfo"
  7. var req Request_base
  8. req.UserId = userId
  9. d, _ := json.Marshal(req)
  10. return DoRequest(msg, string(d))
  11. }
  12. func DoSignin(userId int) Response {
  13. msg := "DoSignin"
  14. var req Request_base
  15. req.UserId = userId
  16. d, _ := json.Marshal(req)
  17. return DoRequest(msg, string(d))
  18. }
  19. func GiftContinueAward(userId, day int) Response {
  20. msg := "GiftContinueAward"
  21. var req GiftContinueAward_req
  22. req.UserId = userId
  23. req.Day = day
  24. d, _ := json.Marshal(req)
  25. return DoRequest(msg, string(d))
  26. }