GetFollowerCount 获取粉丝的数量
(ctx *gin.Context, req req.GetFollowerCountReq)
| 128 | |
| 129 | // GetFollowerCount 获取粉丝的数量 |
| 130 | func (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 | } |
nothing calls this directly
no test coverage detected