feat: 产品分类推荐数据管理
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s
This commit is contained in:
33
app/common/model/ProductCategoryRecommendBaseModel.php
Normal file
33
app/common/model/ProductCategoryRecommendBaseModel.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
/**
|
||||
* 产品分类推荐模型
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class ProductCategoryRecommendBaseModel extends BaseModel
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'product_category_recommend';
|
||||
|
||||
// 主键
|
||||
protected $pk = 'id';
|
||||
|
||||
// 字段信息
|
||||
protected $schema = [
|
||||
'id' => 'int',
|
||||
'language_id' => 'int',
|
||||
'category_id' => 'int',
|
||||
'title' => 'string',
|
||||
'image' => 'string',
|
||||
'desc' => 'string',
|
||||
'link' => 'string',
|
||||
'sort' => 'int',
|
||||
'disabled' => 'int',
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
'deleted_at' => 'datetime'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user