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

Method FollowUser

internal/repository/relation.go:16–16  ·  view source on GitHub ↗
(ctx context.Context, followerID, followeeID int64)

Source from the content-addressed store, hash-verified

14 ListFollowerRelations(ctx context.Context, followerID int64, pagination domain.Pagination) ([]domain.Relation, error)
15 ListFolloweeRelations(ctx context.Context, followeeID int64, pagination domain.Pagination) ([]domain.Relation, error)
16 FollowUser(ctx context.Context, followerID, followeeID int64) error
17 CancelFollowUser(ctx context.Context, followerID, followeeID int64) error
18 GetFolloweeCount(ctx context.Context, userID int64) (int64, error)
19 GetFollowerCount(ctx context.Context, userID int64) (int64, error)

Callers 1

FollowUserMethod · 0.65

Implementers 3

relationServiceinternal/service/relation.go
relationRepositoryinternal/repository/relation.go
RelationHandlerinternal/api/relation.go

Calls

no outgoing calls

Tested by

no test coverage detected