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

Method CancelFollowUser

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

Source from the content-addressed store, hash-verified

45}
46
47func (r *relationRepository) CancelFollowUser(ctx context.Context, followerID, followeeID int64) error {
48 // 取消关注后清除相关缓存
49 if err := r.dao.CancelFollowUser(ctx, followerID, followeeID); err != nil {
50 return err
51 }
52 r.cache.ClearFollowCache(ctx, followerID, followeeID)
53
54 return nil
55}
56
57// ListFollowerRelations 列出粉丝列表
58func (r *relationRepository) ListFollowerRelations(ctx context.Context, followerID int64, pagination domain.Pagination) ([]domain.Relation, error) {

Callers

nothing calls this directly

Calls 2

CancelFollowUserMethod · 0.65
ClearFollowCacheMethod · 0.65

Tested by

no test coverage detected