refactor: 修改视频分类列表接口

This commit is contained in:
2025-03-28 16:47:04 +08:00
parent 76801b7211
commit 1d22d80add
2 changed files with 7 additions and 0 deletions

View File

@@ -37,4 +37,10 @@ class VideoCategoryModel extends VideoCategoryBaseModel
{
$query->where('language_id', '=', $value);
}
// 显示状态查询
public function scopeIsShow($query, bool $value = true)
{
$query->where('is_show', '=', (int)$value);
}
}