IncrLike 增加点赞计数
(ctx context.Context, postId uint, uid int64)
| 45 | |
| 46 | // IncrLike 增加点赞计数 |
| 47 | func (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 减少点赞计数 |
| 55 | func (i *InteractiveRepositoryImpl) DecrLike(ctx context.Context, postId uint, uid int64) error { |
nothing calls this directly
no test coverage detected