初始化仓库
This commit is contained in:
66
common/modelsgii/SystemNotice.php
Normal file
66
common/modelsgii/SystemNotice.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace common\modelsgii;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "{{%system_notice}}".
|
||||
*
|
||||
* @property $id ID
|
||||
* @property $data
|
||||
* @property $store_id 门店ID
|
||||
* @property $content 通知内容
|
||||
* @property $url 链接
|
||||
* @property $url_type 链接类型
|
||||
* @property $base_type 通知类型1订单取消通知2接诊通知3拒诊通知4温馨提示
|
||||
* @property $scene_type 场景类型:1用户端,2服务端(角色)
|
||||
* @property $user_role 通知用户类型
|
||||
* @property $user_id 用户id
|
||||
* @property $notice_at 通知时间
|
||||
* @property $created_at 创建时间
|
||||
* @property $updated_at 更新时间
|
||||
*/
|
||||
class SystemNotice extends \common\core\BaseActiveRecord
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return '{{%system_notice}}';
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['content', 'url'], 'string'],
|
||||
[['url_type', 'scene_type', 'user_role','base_type', 'user_id', 'store_id','created_at', 'updated_at'], 'integer'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'data' => 'Data',
|
||||
'store_id' => '门店ID',
|
||||
'content' => '通知内容',
|
||||
'url' => '链接',
|
||||
'url_type' => '链接类型',
|
||||
'base_type' => '通知类型1订单取消通知2接诊通知3拒诊通知4温馨提示',
|
||||
'scene_type' => '场景类型:1用户端,2服务端(角色)',
|
||||
'user_role' => '通知用户类型',
|
||||
'user_id' => '用户id',
|
||||
'notice_at' => '通知时间',
|
||||
'created_at' => '创建时间',
|
||||
'updated_at' => '更新时间',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user