refactor: 下载分类列表接口调整

This commit is contained in:
2025-03-28 15:37:40 +08:00
parent d69e561370
commit f7e1b16f4d
2 changed files with 7 additions and 1 deletions

View File

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