command_monthlycard.go 990 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package client
  2. import (
  3. "encoding/json"
  4. "bet24.com/log"
  5. )
  6. //月卡系统信息
  7. func MonthlyCardSysInfo() Response {
  8. log.Debug("coreclient.MonthlyCardSysInfo")
  9. msg := "MonthlyCardSysInfo"
  10. return DoRequest(msg, "")
  11. }
  12. //获取用户月卡信息
  13. func MonthlyCardUserInfo(userId int) Response {
  14. log.Debug("corclient.MonthlyCardUserInfo userId=%d", userId)
  15. msg := "MonthlyCardUserInfo"
  16. var req Request_base
  17. req.UserId = userId
  18. d, _ := json.Marshal(req)
  19. return DoRequest(msg, string(d))
  20. }
  21. //领取月卡
  22. func MonthlyCardGift(userId int) Response {
  23. log.Debug("coreclient.MonthlyCardGift userId=%d", userId)
  24. msg := "MonthlyCardGift"
  25. var req Request_base
  26. req.UserId = userId
  27. d, _ := json.Marshal(req)
  28. return DoRequest(msg, string(d))
  29. }
  30. //领取周卡
  31. func WeekCardGift(userId int) Response {
  32. log.Debug("coreclient.WeekCardGift userId=%d", userId)
  33. msg := "WeekCardGift"
  34. var req Request_base
  35. req.UserId = userId
  36. d, _ := json.Marshal(req)
  37. return DoRequest(msg, string(d))
  38. }