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\ProductRelatedBaseModel;
/**
* 产品 - 关联产品模型
* @mixin \think\Model
*/
class ProductRelatedModel extends ProductRelatedBaseModel
{
// 根据产品ID查询
public function scopeProductId($query, $id)
{
$query->where('product_id', $id);
}
}