ListFollowerRelations 获取关注信息列表
(ctx *gin.Context, req req.ListFollowerRelationsReq)
| 31 | |
| 32 | // ListFollowerRelations 获取关注信息列表 |
| 33 | func (r *RelationHandler) ListFollowerRelations(ctx *gin.Context, req req.ListFollowerRelationsReq) (Result, error) { |
| 34 | relations, err := r.svc.ListFollowerRelations(ctx, req.FollowerID, domain.Pagination{ |
| 35 | Page: req.Page, |
| 36 | Size: req.Size, |
| 37 | }) |
| 38 | if err != nil { |
| 39 | return Result{ |
| 40 | Code: ListCommentErrorCode, |
| 41 | Msg: ListCommentErrorMsg, |
| 42 | }, err |
| 43 | } |
| 44 | return Result{ |
| 45 | Code: RequestsOK, |
| 46 | Msg: ListCommentSuccessMsg, |
| 47 | Data: relations, |
| 48 | }, nil |
| 49 | } |
| 50 | |
| 51 | // ListFolloweeRelations 获取关注关系信息 |
| 52 | func (r *RelationHandler) ListFolloweeRelations(ctx *gin.Context, req req.ListFolloweeRelationsReq) (Result, error) { |
nothing calls this directly
no test coverage detected