feat: 新增产品属性增/删/改/查接口
This commit is contained in:
19
app/admin/model/v1/ProductAttrPropModel.php
Normal file
19
app/admin/model/v1/ProductAttrPropModel.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\admin\model\v1;
|
||||
|
||||
use app\common\model\ProductAttrPropBaseModel;
|
||||
|
||||
/**
|
||||
* 产品 - 产品属性特征模型
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class ProductAttrPropModel extends ProductAttrPropBaseModel
|
||||
{
|
||||
// 所属属性查询
|
||||
public function scopeAttrId($query, $value)
|
||||
{
|
||||
$query->where('attr_id', '=', $value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user