(ctx context.Context, followerID, followeeID int64)
| 45 | } |
| 46 | |
| 47 | func (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 列出粉丝列表 |
| 58 | func (r *relationRepository) ListFollowerRelations(ctx context.Context, followerID int64, pagination domain.Pagination) ([]domain.Relation, error) { |
nothing calls this directly
no test coverage detected