Manage.php 548 字节
<?php

namespace App\Models\Manage;

use App\Models\Base;

class Manage extends Base
{
    //设置关联表名
    protected $table = 'gl_manage';

    protected $hidden = ['password', 'token'];

    const STATUS_ACTIVE = 1;
    const STATUS_DISABLE = 0;

    /**
     * 超级管理员ID, 当前ID拥有所有权限, 不能进行修改
     */
    const ADMINISTRATOR_ID = 1;

    public static function statusMap(){
        return [
            self::STATUS_ACTIVE => '禁用',
            self::STATUS_DISABLE => '正常',
        ];
    }
}