refactor: 文章评论相关接口修改
This commit is contained in:
@@ -22,12 +22,6 @@ class ArticleLeaveMessageModel extends ArticleLeaveMessageBaseModel
|
||||
return $this->belongsTo(ArticleModel::class, 'article_id', 'id');
|
||||
}
|
||||
|
||||
// 根据id查询
|
||||
public function scopeId($query, $value)
|
||||
{
|
||||
$query->where('id', '=', $value);
|
||||
}
|
||||
|
||||
// 审核状态查询
|
||||
public function scopeIsAudited($query, $is_audited)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user