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

Method ListFollowerRelations

internal/api/relation.go:33–49  ·  view source on GitHub ↗

ListFollowerRelations 获取关注信息列表

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

Source from the content-addressed store, hash-verified

31
32// ListFollowerRelations 获取关注信息列表
33func (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 获取关注关系信息
52func (r *RelationHandler) ListFolloweeRelations(ctx *gin.Context, req req.ListFolloweeRelationsReq) (Result, error) {

Callers

nothing calls this directly

Calls 1

ListFollowerRelationsMethod · 0.65

Tested by

no test coverage detected