ListFolloweeRelations 获取特定的关注关系信息
(ctx context.Context, followeeID int64, pagination domain.Pagination)
| 35 | |
| 36 | // ListFolloweeRelations 获取特定的关注关系信息 |
| 37 | func (r *relationService) ListFolloweeRelations(ctx context.Context, followeeID int64, pagination domain.Pagination) ([]domain.Relation, error) { |
| 38 | // 计算偏移量 |
| 39 | offset := int64(pagination.Page-1) * *pagination.Size |
| 40 | pagination.Offset = &offset |
| 41 | return r.repo.ListFolloweeRelations(ctx, followeeID, pagination) |
| 42 | } |
| 43 | |
| 44 | // FollowUser 关注用户 |
| 45 | func (r *relationService) FollowUser(ctx context.Context, followerID, followeeID int64) error { |
nothing calls this directly
no test coverage detected