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

Method ListFolloweeRelations

internal/api/relation.go:52–68  ·  view source on GitHub ↗

ListFolloweeRelations 获取关注关系信息

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

Source from the content-addressed store, hash-verified

50
51// ListFolloweeRelations 获取关注关系信息
52func (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 处理关注用户的请求
71func (r *RelationHandler) FollowUser(ctx *gin.Context, req req.FollowUserReq) (Result, error) {

Callers

nothing calls this directly

Calls 1

ListFolloweeRelationsMethod · 0.65

Tested by

no test coverage detected