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

Method IncrLike

internal/repository/interactive.go:47–52  ·  view source on GitHub ↗

IncrLike 增加点赞计数

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

Source from the content-addressed store, hash-verified

45
46// IncrLike 增加点赞计数
47func (i *InteractiveRepositoryImpl) IncrLike(ctx context.Context, postId uint, uid int64) error {
48 return i.dao.InsertLikeInfo(ctx, dao.UserLikeBiz{
49 BizID: postId,
50 Uid: uid,
51 })
52}
53
54// DecrLike 减少点赞计数
55func (i *InteractiveRepositoryImpl) DecrLike(ctx context.Context, postId uint, uid int64) error {

Callers

nothing calls this directly

Calls 1

InsertLikeInfoMethod · 0.65

Tested by

no test coverage detected