| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use app\models\common\admin\log\CommonActionLog;
- use Yii;
- /**
- * This is the model class for table "{{%article}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $article_cat_id
- * @property string $title
- * @property string $content
- * @property integer $sort
- * @property integer $addtime
- * @property integer $is_delete
- * @property integer $is_show
- */
- class Article extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%article}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id', 'article_cat_id', 'sort', 'addtime', 'is_delete', 'is_show'], 'integer'],
- [['content'], 'string'],
- [['title'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'article_cat_id' => '分类id:1=关于我们,2=服务中心',
- 'title' => '标题',
- 'content' => '内容',
- 'sort' => '排序:升序',
- 'addtime' => 'Addtime',
- 'is_delete' => 'Is Delete',
- 'is_show' => '是否显示',
- ];
- }
- }
|