rank_list.go 497 B

123456789101112131415161718192021
  1. package dao
  2. import (
  3. "context"
  4. "go-common/app/job/main/dm2/model"
  5. "go-common/library/log"
  6. )
  7. const (
  8. _dataRankURI = "/data/rank/recent_region-%d-%d.json"
  9. )
  10. // RankList get data rank by tid
  11. func (d *Dao) RankList(c context.Context, tid int64, day int32) (resp *model.RankRecentResp, err error) {
  12. if err = d.httpCli.RESTfulGet(c, d.conf.Host.DataRank+_dataRankURI, "", nil, &resp, tid, day); err != nil {
  13. log.Error("RankList(tid:%v,day:%v),error(%v)", tid, day, err)
  14. return
  15. }
  16. return
  17. }