feat: 新增产品属性增/删/改/查接口

This commit is contained in:
2025-02-12 14:33:39 +08:00
parent 88d030e6c4
commit 7a056f3437
7 changed files with 314 additions and 1 deletions

View 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);
}
}