新增发布委托商品接口
This commit is contained in:
parent
16909c252d
commit
6766c0e167
26
app/common/model/store/Entrust.php
Normal file
26
app/common/model/store/Entrust.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\store;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
use app\common\model\store\product\Spu;
|
||||
|
||||
class Entrust extends BaseModel
|
||||
{
|
||||
|
||||
public static function tablePk(): string
|
||||
{
|
||||
return 'id';
|
||||
}
|
||||
|
||||
public static function tableName(): string
|
||||
{
|
||||
return 'entrust';
|
||||
}
|
||||
|
||||
public function spu()
|
||||
{
|
||||
return $this->hasOne(Spu::class, 'product_id','product_id');
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user