GetFolloweeCount 获取关注者的数量
(ctx *gin.Context, req req.GetFolloweeCountReq)
| 112 | |
| 113 | // GetFolloweeCount 获取关注者的数量 |
| 114 | func (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 获取粉丝的数量 |
| 130 | func (r *RelationHandler) GetFollowerCount(ctx *gin.Context, req req.GetFollowerCountReq) (Result, error) { |
nothing calls this directly
no test coverage detected