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

Function NewRelationRepository

internal/repository/relation.go:28–34  ·  view source on GitHub ↗
(dao dao.RelationDAO, cache cache.RelationCache, logger *zap.Logger)

Source from the content-addressed store, hash-verified

26}
27
28func NewRelationRepository(dao dao.RelationDAO, cache cache.RelationCache, logger *zap.Logger) RelationRepository {
29 return &relationRepository{
30 dao: dao,
31 cache: cache,
32 logger: logger,
33 }
34}
35
36// FollowUser 关注用户
37func (r *relationRepository) FollowUser(ctx context.Context, followerID, followeeID int64) error {

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected