refactor: banner新增相关分类数据字段

This commit is contained in:
2025-04-23 15:24:06 +08:00
parent 8dad8dd35f
commit 8d1a803359
5 changed files with 167 additions and 12 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare (strict_types = 1);
namespace app\admin\model\v1;
use app\common\model\SysBannerProdCateMappingBaseModel;
/**
* banner与产品分类关联表模型
* @mixin \think\Model
*/
class SysBannerProdCateMappingModel extends SysBannerProdCateMappingBaseModel
{
// 关联产品分类
public function category()
{
return $this->belongsTo(ProductCategoryModel::class, 'product_category_id', 'id');
}
}