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

Method ListFolloweeRelations

internal/service/relation.go:37–42  ·  view source on GitHub ↗

ListFolloweeRelations 获取特定的关注关系信息

(ctx context.Context, followeeID int64, pagination domain.Pagination)

Source from the content-addressed store, hash-verified

35
36// ListFolloweeRelations 获取特定的关注关系信息
37func (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 关注用户
45func (r *relationService) FollowUser(ctx context.Context, followerID, followeeID int64) error {

Callers

nothing calls this directly

Calls 1

ListFolloweeRelationsMethod · 0.65

Tested by

no test coverage detected