|
|
@ -22,6 +22,18 @@ use yii\behaviors\TimestampBehavior; |
|
|
|
*/ |
|
|
|
class Category extends \yii\db\ActiveRecord |
|
|
|
{ |
|
|
|
//是否显示is_show
|
|
|
|
const IS_SHOW_DISPLAY = 0;//显示
|
|
|
|
const IS_SHOW_HIDE = 1;//隐藏
|
|
|
|
//是否删除is_delete
|
|
|
|
const IS_DELETE_NO = 0;//未删除
|
|
|
|
const IS_DELETE_YES = 1;//已删除
|
|
|
|
|
|
|
|
public static $isShow = [ |
|
|
|
self::IS_SHOW_DISPLAY => '显示', |
|
|
|
self::IS_SHOW_HIDE => '隐藏' |
|
|
|
]; |
|
|
|
|
|
|
|
/** |
|
|
|
* {@inheritdoc} |
|
|
|
*/ |
|
|
@ -56,7 +68,7 @@ class Category extends \yii\db\ActiveRecord |
|
|
|
'sort_order' => '排序', |
|
|
|
'icon_type' => '图标类型', |
|
|
|
'icon' => '图标', |
|
|
|
'is_show' => '是否显示,1为不显示', |
|
|
|
'is_show' => '是否显示', |
|
|
|
'is_delete' => '是否删除,1为已删除', |
|
|
|
'created_at' => '创建时间', |
|
|
|
'updated_at' => '更新时间', |
|
|
|