review.go 387 B

12345678910111213141516171819202122
  1. package review
  2. import "bet24.com/log"
  3. var appSet = []string{"google"}
  4. var mgr *reviewmgr
  5. func Run() {
  6. log.Debug("review running")
  7. mgr = newReviewMgr()
  8. }
  9. //获取评论信息
  10. func Info(userId int, appName string) int {
  11. return mgr.info(userId, appName)
  12. }
  13. //领取评论
  14. func Gift(userId int, appName, ipAddress string) (bool, int) {
  15. return mgr.gift(userId, appName, ipAddress)
  16. }