1
This commit is contained in:
18
app/common/constants/AdminConstant.php
Normal file
18
app/common/constants/AdminConstant.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\constants;
|
||||
|
||||
/**
|
||||
* 管理员常量
|
||||
* Class AdminConstant
|
||||
* @package app\common\constants
|
||||
*/
|
||||
class AdminConstant
|
||||
{
|
||||
|
||||
/**
|
||||
* 超级管理员,不受权限控制
|
||||
*/
|
||||
const SUPER_ADMIN_ID = 1;
|
||||
|
||||
}
|
||||
23
app/common/constants/MenuConstant.php
Normal file
23
app/common/constants/MenuConstant.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\constants;
|
||||
|
||||
/**
|
||||
* 菜单常量
|
||||
* Class MenuConstant
|
||||
* @package app\common\constants
|
||||
*/
|
||||
class MenuConstant
|
||||
{
|
||||
|
||||
/**
|
||||
* 首页的PID
|
||||
*/
|
||||
const HOME_PID = 99999999;
|
||||
|
||||
/**
|
||||
* 模块名前缀
|
||||
*/
|
||||
const MODULE_PREFIX = 'easyadmin_';
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user