refactor: 下载分类列表接口调整
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user