(repo repository.RelationRepository)
| 20 | } |
| 21 | |
| 22 | func NewRelationService(repo repository.RelationRepository) RelationService { |
| 23 | return &relationService{ |
| 24 | repo: repo, |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | // ListFollowerRelations 列出所有关注关系 |
| 29 | func (r *relationService) ListFollowerRelations(ctx context.Context, followerID int64, pagination domain.Pagination) ([]domain.Relation, error) { |