GetRanking 获取排行榜
(ctx *gin.Context)
| 30 | |
| 31 | // GetRanking 获取排行榜 |
| 32 | func (rh *RankingHandler) GetRanking(ctx *gin.Context) { |
| 33 | dp, err := rh.svc.GetTopN(ctx) |
| 34 | if err != nil { |
| 35 | apiresponse.ErrorWithData(ctx, err) |
| 36 | return |
| 37 | } |
| 38 | apiresponse.SuccessWithData(ctx, dp) |
| 39 | } |
| 40 | |
| 41 | func (rh *RankingHandler) GetRankingConfig(ctx *gin.Context) { |
| 42 | dp, err := rh.svc.GetRankingConfig(ctx) |
nothing calls this directly
no test coverage detected