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

Method toDomainRelation

internal/repository/relation.go:136–141  ·  view source on GitHub ↗
(relation dao.Relation)

Source from the content-addressed store, hash-verified

134}
135
136func (r *relationRepository) toDomainRelation(relation dao.Relation) domain.Relation {
137 return domain.Relation{
138 FolloweeId: relation.FolloweeID,
139 FollowerId: relation.FollowerID,
140 }
141}
142
143func (r *relationRepository) toDomainRelationSlice(relations []dao.Relation) []domain.Relation {
144 relationSlice := make([]domain.Relation, len(relations))

Callers 1

toDomainRelationSliceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected