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\ProductSkuBaseModel;
/**
* 产品sku模型
* @mixin \think\Model
*/
class ProductSkuModel extends ProductSkuBaseModel
{
// 关联属性
public function skuAttr()
{
return $this->hasMany(ProductSkuAttrModel::class, 'sku_id', 'id');
}
}