mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-24 04:01:31 +08:00
21 lines
445 B
PHP
21 lines
445 B
PHP
<?php
|
|
|
|
namespace App\Repos;
|
|
|
|
use App\Models\CommentLike as CommentLikeModel;
|
|
|
|
class CommentLike extends Repository
|
|
{
|
|
|
|
public function findCommentLike($commentId, $userId)
|
|
{
|
|
$result = CommentLikeModel::query()
|
|
->where('comment_id = :comment_id:', ['comment_id' => $commentId])
|
|
->amdWhere('user_id = :user_id:', ['user_id' => $userId])
|
|
->execute()->getFirst();
|
|
|
|
return $result;
|
|
}
|
|
|
|
}
|