TimestampBehavior::class ] ]; } /** * @inheritdoc */ public function rules() { return [ [['id', 'star', 'is_delete', 'created_at', 'updated_at', 'is_show'], 'integer'], [['tag'], 'string'] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => '', 'tag' => '标签内容', 'star' => '星级', 'is_delete' => '', 'is_show' => '', 'created_at' => '创建时间', 'updated_at' => '修改时间', ]; } }