<?php

namespace app\common\model;

class ArticleCateModel extends BaseModel
{
    // 设置表名
    protected $name = 'article_cate';

    // 常量
    const STATUS = [1 => '显示', 2 => '隐藏'];

    const STATUS_SHOW = 1;
    const STATUS_HIDE = 2;

    //允许修改
    const EDIT_ALLOW = ['title','priority','status'];

    public function getStatusTextAttr($value, $data)
    {
        return self::STATUS[$data['status']];
    }


}