feat: 开放API产品相关

This commit is contained in:
2025-05-20 14:41:30 +08:00
parent 1d723b31a5
commit 6b41a963e7
12 changed files with 447 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare (strict_types = 1);
namespace app\openapi\model;
use app\common\model\ProductRelatedBaseModel;
/**
* 产品 - 相关产品模型
* @mixin \think\Model
*/
class ProductRelatedModel extends ProductRelatedBaseModel
{
// 关联产品
public function product()
{
return $this->belongsTo(ProductModel::class, 'related_product_id', 'id');
}
}