|
@@ -4,6 +4,7 @@ namespace app\common\model;
|
|
|
|
|
|
use think\db\Query;
|
|
|
use think\Model;
|
|
|
+use think\model\relation\HasMany;
|
|
|
use Yansongda\Supports\Arr;
|
|
|
|
|
|
/**
|
|
@@ -19,6 +20,9 @@ class SiteMsg extends Model
|
|
|
const TYPE_ORDER_REFUND_PASS='order_refund_pass';
|
|
|
const TYPE_ORDER_REFUND_REJECT='order_refund_reject';
|
|
|
const TYPE_NEW_GOODS='new_goods';
|
|
|
+ /**
|
|
|
+ * @return SiteMsgRead|HasMany
|
|
|
+ */
|
|
|
public function read(){
|
|
|
return $this->hasMany(SiteMsgRead::class);
|
|
|
}
|