feat: 添加获取系统前台各模块url接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user