command_newusergift.go 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package client
  2. import (
  3. "encoding/json"
  4. _ "bet24.com/log"
  5. )
  6. // 成长礼包
  7. func GetNewUserGiftInfo(userId int) Response {
  8. msg := "GetNewUserGiftInfo"
  9. var req Request_base
  10. req.UserId = userId
  11. d, _ := json.Marshal(req)
  12. return DoRequest(msg, string(d))
  13. }
  14. // 领取新用户登录奖励
  15. func ReceiveNewUserGift(userId, isDouble int) Response {
  16. msg := "ReceiveNewUserGift"
  17. var req ReceiveNewUserGift_Req
  18. req.UserId = userId
  19. req.IsDouble = isDouble
  20. d, _ := json.Marshal(req)
  21. return DoRequest(msg, string(d))
  22. }
  23. func GetNewYearGiftInfo(userId int) Response {
  24. msg := "GetNewYearGiftInfo"
  25. var req Request_base
  26. req.UserId = userId
  27. d, _ := json.Marshal(req)
  28. return DoRequest(msg, string(d))
  29. }
  30. // 领取新用户登录奖励
  31. func ReceiveNewYearGift(userId, isDouble int) Response {
  32. msg := "ReceiveNewYearGift"
  33. var req ReceiveNewUserGift_Req
  34. req.UserId = userId
  35. req.IsDouble = isDouble
  36. d, _ := json.Marshal(req)
  37. return DoRequest(msg, string(d))
  38. }