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