feat : admin driver name
This commit is contained in:
@@ -12,10 +12,20 @@ class UserCode extends AbstractConstants
|
||||
* 禁用
|
||||
* @Message("该用户已被禁用")
|
||||
*/
|
||||
const DISABLE = 2;
|
||||
const int DISABLE = 2;
|
||||
|
||||
/**
|
||||
* 启用
|
||||
*/
|
||||
const ENABLE = 1;
|
||||
const int ENABLE = 1;
|
||||
|
||||
/**
|
||||
* 未删除
|
||||
*/
|
||||
const int IS_NO_DEL = 1;
|
||||
|
||||
/**
|
||||
* @Message("该用户已被删除")
|
||||
*/
|
||||
const int IS_DEL = 2;
|
||||
}
|
||||
11
app/Constants/Common/RoleCode.php
Normal file
11
app/Constants/Common/RoleCode.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Constants\Common;
|
||||
|
||||
class RoleCode
|
||||
{
|
||||
const int SUPER_ADMIN = 1;
|
||||
const int ADMIN = 2;
|
||||
const int CHEF = 3;
|
||||
const int DRIVER = 4;
|
||||
}
|
||||
Reference in New Issue
Block a user