| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhWxMenu".
- *
- * @property int $id
- * @property string $name 菜单标题
- * @property int $parentId 父菜单ID
- * @property int $merchantId 商家ID
- * @property string $menuKey 菜单key merchantId_菜单序号
- * @property int $menuOption 菜单选项
- * @property int $replyType 回复类型 0 跳转链接(view) 1 回复文字 2回复单图文 具体查看配置文件 configDict replyType
- * @property string $replyUrl 回复url
- * @property string $replyText 回复文字
- * @property string $replyMultiNews 回复多图文
- * @property string $replyNews 回复单图文
- * @property int $targetId 目标id 如活动id
- * @property int $hasSonMenu 是否子菜单 0没有 1有
- * @property int $menuOrder 菜单顺序
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhWxMenu extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhWxMenu';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['parentId', 'merchantId', 'menuOption', 'replyType', 'targetId', 'hasSonMenu', 'menuOrder'], 'integer'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['name'], 'string', 'max' => 50],
- [['menuKey'], 'string', 'max' => 20],
- [['replyUrl'], 'string', 'max' => 100],
- [['replyText'], 'string', 'max' => 800],
- [['replyMultiNews', 'replyNews'], 'string', 'max' => 1000],
- [['menuKey'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'name' => 'Name',
- 'parentId' => 'Parent ID',
- 'merchantId' => 'Merchant ID',
- 'menuKey' => 'Menu Key',
- 'menuOption' => 'Menu Option',
- 'replyType' => 'Reply Type',
- 'replyUrl' => 'Reply Url',
- 'replyText' => 'Reply Text',
- 'replyMultiNews' => 'Reply Multi News',
- 'replyNews' => 'Reply News',
- 'targetId' => 'Target ID',
- 'hasSonMenu' => 'Has Son Menu',
- 'menuOrder' => 'Menu Order',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|