feat: 产品相关接口
This commit is contained in:
28
app/common/model/ProductPurchaseLinkBaseModel.php
Normal file
28
app/common/model/ProductPurchaseLinkBaseModel.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
/**
|
||||
* 产品购买链接模型
|
||||
* @mixin \think\Model
|
||||
*/
|
||||
class ProductPurchaseLinkBaseModel extends BaseModel
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'product_purchase_link';
|
||||
|
||||
// 主键
|
||||
protected $pk = 'id';
|
||||
|
||||
// 字段信息
|
||||
protected $schema = [
|
||||
'id' => 'int',
|
||||
'language_id' => 'int',
|
||||
'product_id' => 'int',
|
||||
'platform_id' => 'int',
|
||||
'link' => 'string',
|
||||
'sort' => 'int',
|
||||
'created_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user