feat: 添加横幅列表接口

This commit is contained in:
2025-03-28 15:43:58 +08:00
parent de34abf256
commit 937d28f384
3 changed files with 37 additions and 0 deletions

View File

@@ -24,6 +24,18 @@ class SysBannerModel extends SysBannerBaseModel
$query->where('language_id', $value);
}
// 查询启用状态
public function scopeEnabled($query)
{
$query->where('status', '=', 1);
}
// 查询禁用状态
public function scopeDisabled($query)
{
$query->where('status', '=', -1);
}
// 按名称搜索
public function searchNameAttr($query, $value, $data)
{