refactor: 修改产品更新及详情接口

This commit is contained in:
2025-02-10 17:15:41 +08:00
parent c6c252c06a
commit 70725aa3a8
3 changed files with 91 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare (strict_types = 1);
namespace app\admin\model\v1;
use app\common\model\ProductParamsBaseModel;
/**
* 产品 - 产品参数模型
* @mixin \think\Model
*/
class ProductParamsModel extends ProductParamsBaseModel
{
// 要据产品ID查询
public function scopeProductId($query, $id)
{
return $query->where('product_id', $id);
}
}