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

Method GetFollowerCount

internal/api/relation.go:130–143  ·  view source on GitHub ↗

GetFollowerCount 获取粉丝的数量

(ctx *gin.Context, req req.GetFollowerCountReq)

Source from the content-addressed store, hash-verified

128
129// GetFollowerCount 获取粉丝的数量
130func (r *RelationHandler) GetFollowerCount(ctx *gin.Context, req req.GetFollowerCountReq) (Result, error) {
131 count, err := r.svc.GetFollowerCount(ctx, req.UserID)
132 if err != nil {
133 return Result{
134 Code: GetFollowerCountErrorCode,
135 Msg: GetFollowerCountERRORMsg,
136 }, err
137 }
138 return Result{
139 Code: RequestsOK,
140 Msg: GetFollowerCountSuccessMsg,
141 Data: count,
142 }, nil
143}

Callers

nothing calls this directly

Calls 1

GetFollowerCountMethod · 0.65

Tested by

no test coverage detected