Liked 检查是否已点赞
(ctx context.Context, postId uint, uid int64)
| 87 | |
| 88 | // Liked 检查是否已点赞 |
| 89 | func (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 检查是否已收藏 |
| 95 | func (i *InteractiveRepositoryImpl) Collected(ctx context.Context, postId uint, uid int64) (bool, error) { |
nothing calls this directly
no test coverage detected