gold2chipwheel.go 411 B

123456789101112131415161718192021222324252627
  1. package gold2chipwheel
  2. var mgr *gold2chipwheelmgr
  3. func Run() {
  4. mgr = newPrizeWheelManager()
  5. }
  6. func Wheel(userId, bet int, ipAddress string) int {
  7. return mgr.wheel(userId, bet, ipAddress)
  8. }
  9. func Dump(param1, param2 string) {
  10. mgr.dump(param1, param2)
  11. }
  12. func GetConfig() string {
  13. return mgr.getPrizes()
  14. }
  15. func GetRecord(userId int) string {
  16. return mgr.getRecord(userId)
  17. }
  18. func Flush() {
  19. mgr.flush()
  20. }