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

Method GetFolloweeCount

internal/api/relation.go:114–127  ·  view source on GitHub ↗

GetFolloweeCount 获取关注者的数量

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

Source from the content-addressed store, hash-verified

112
113// GetFolloweeCount 获取关注者的数量
114func (r *RelationHandler) GetFolloweeCount(ctx *gin.Context, req req.GetFolloweeCountReq) (Result, error) {
115 count, err := r.svc.GetFolloweeCount(ctx, req.UserID)
116 if err != nil {
117 return Result{
118 Code: GetFolloweeCountErrorCode,
119 Msg: GetFolloweeCountERRORMsg,
120 }, err
121 }
122 return Result{
123 Code: RequestsOK,
124 Msg: GetFolloweeCountSuccessMsg,
125 Data: count,
126 }, nil
127}
128
129// GetFollowerCount 获取粉丝的数量
130func (r *RelationHandler) GetFollowerCount(ctx *gin.Context, req req.GetFollowerCountReq) (Result, error) {

Callers

nothing calls this directly

Calls 1

GetFolloweeCountMethod · 0.65

Tested by

no test coverage detected