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\ProductPurchaseLinkBaseModel;
/**
* 产品购买链接模型
* @mixin \think\Model
*/
class ProductPurchaseLinkModel extends ProductPurchaseLinkBaseModel
{
// 关联购买平台
public function platform()
{
return $this->belongsTo(ProductPurchasePlatformModel::class, 'platform_id', 'id')->bind(['platform']);
}
}