feat: 添加获取系统前台各模块url接口

This commit is contained in:
2025-03-14 17:58:36 +08:00
parent 32ccd0e367
commit e4e5b6583f
7 changed files with 178 additions and 4 deletions

View File

@@ -67,6 +67,10 @@ class ProductModel extends ProductBaseModel
}
$query->where('category_id', '=', $value);
}
public function scopeCategory($query, $value)
{
$query->where('category_id', '=', $value);
}
// 上架状态查询
public function scopeIsShowNullable($query, bool|null $value)
@@ -76,4 +80,8 @@ class ProductModel extends ProductBaseModel
}
$query->where('is_show', '=', (int)$value);
}
public function scopeIsShow($query, bool $value)
{
$query->where('is_show', '=', (int)$value);
}
}