MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / GetRanking

Method GetRanking

internal/api/ranking.go:32–39  ·  view source on GitHub ↗

GetRanking 获取排行榜

(ctx *gin.Context)

Source from the content-addressed store, hash-verified

30
31// GetRanking 获取排行榜
32func (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
41func (rh *RankingHandler) GetRankingConfig(ctx *gin.Context) {
42 dp, err := rh.svc.GetRankingConfig(ctx)

Callers

nothing calls this directly

Calls 3

ErrorWithDataFunction · 0.92
SuccessWithDataFunction · 0.92
GetTopNMethod · 0.65

Tested by

no test coverage detected