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

Method Liked

internal/repository/interactive.go:89–92  ·  view source on GitHub ↗

Liked 检查是否已点赞

(ctx context.Context, postId uint, uid int64)

Source from the content-addressed store, hash-verified

87
88// Liked 检查是否已点赞
89func (i *InteractiveRepositoryImpl) Liked(ctx context.Context, postId uint, uid int64) (bool, error) {
90 _, err := i.dao.GetLikeInfo(ctx, postId, uid)
91 return i.checkExistence(err, PostGetLikedERROR)
92}
93
94// Collected 检查是否已收藏
95func (i *InteractiveRepositoryImpl) Collected(ctx context.Context, postId uint, uid int64) (bool, error) {

Callers

nothing calls this directly

Calls 2

checkExistenceMethod · 0.95
GetLikeInfoMethod · 0.65

Tested by

no test coverage detected