ListFolloweeRelations 获取关注关系信息
(ctx *gin.Context, req req.ListFolloweeRelationsReq)
| 50 | |
| 51 | // ListFolloweeRelations 获取关注关系信息 |
| 52 | func (r *RelationHandler) ListFolloweeRelations(ctx *gin.Context, req req.ListFolloweeRelationsReq) (Result, error) { |
| 53 | relation, err := r.svc.ListFolloweeRelations(ctx, req.FolloweeID, domain.Pagination{ |
| 54 | Page: req.Page, |
| 55 | Size: req.Size, |
| 56 | }) |
| 57 | if err != nil { |
| 58 | return Result{ |
| 59 | Code: ListCommentErrorCode, |
| 60 | Msg: ListCommentErrorMsg, |
| 61 | }, err |
| 62 | } |
| 63 | return Result{ |
| 64 | Code: RequestsOK, |
| 65 | Msg: ListCommentSuccessMsg, |
| 66 | Data: relation, |
| 67 | }, nil |
| 68 | } |
| 69 | |
| 70 | // FollowUser 处理关注用户的请求 |
| 71 | func (r *RelationHandler) FollowUser(ctx *gin.Context, req req.FollowUserReq) (Result, error) { |
nothing calls this directly
no test coverage detected