feat: 开放API产品相关
This commit is contained in:
19
app/openapi/model/ProductSkuAttrModel.php
Normal file
19
app/openapi/model/ProductSkuAttrModel.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\openapi\model;
|
||||
|
||||
use app\common\model\ProductSkuAttrBaseModel;
|
||||
|
||||
/**
|
||||
* 产品sku属性模型
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class ProductSkuAttrModel extends ProductSkuAttrBaseModel
|
||||
{
|
||||
// 关联属性
|
||||
public function attr()
|
||||
{
|
||||
return $this->belongsTo(\app\common\model\ProductAttrBaseModel::class, 'attr_id', 'id')->bind(['attr_name']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user