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

Method DecrLike

internal/repository/interactive.go:55–60  ·  view source on GitHub ↗

DecrLike 减少点赞计数

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

Source from the content-addressed store, hash-verified

53
54// DecrLike 减少点赞计数
55func (i *InteractiveRepositoryImpl) DecrLike(ctx context.Context, postId uint, uid int64) error {
56 return i.dao.DeleteLikeInfo(ctx, dao.UserLikeBiz{
57 BizID: postId,
58 Uid: uid,
59 })
60}
61
62// IncrCollectionItem 增加收藏计数
63func (i *InteractiveRepositoryImpl) IncrCollectionItem(ctx context.Context, postId uint, uid int64) error {

Callers

nothing calls this directly

Calls 1

DeleteLikeInfoMethod · 0.65

Tested by

no test coverage detected