feat: 初始化雄戈商城服务端代码与Webhook自动部署配置
这个提交包含在:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace addons\shopro\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* 用户门店
|
||||
*/
|
||||
class UserStore extends Model
|
||||
{
|
||||
protected $name = 'shopro_user_store';
|
||||
// 关闭写入更新时间
|
||||
protected $autoWriteTimestamp = false;
|
||||
|
||||
// 追加属性
|
||||
protected $append = [
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
|
||||
public function store()
|
||||
{
|
||||
return $this->belongsTo(Store::class, 'store_id', 'id');
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户