feat: 产品相关接口

This commit is contained in:
2025-01-24 17:54:04 +08:00
parent 65bd37042a
commit db489a8429
18 changed files with 787 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
declare (strict_types = 1);
namespace app\common\model;
/**
* 产品sku模型
* @mixin \think\Model
*/
class ProductSkuBaseModel extends BaseModel
{
// 表名
protected $name = 'product_sku';
// 主键
protected $pk = 'id';
// 字段信息
protected $schema = [
'id' => 'int',
'product_id' => 'int',
'sku' => 'string',
'main_image' => 'string',
'photo_album' => 'string',
'sort' => 'int',
'created_at' => 'datetime',
'updated_at' => 'datetime'
];
}