feat : admin driver name

This commit is contained in:
2024-11-11 13:06:07 +08:00
parent 3aba37d426
commit b64d2872ac
10 changed files with 153 additions and 6 deletions

View File

@@ -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;
}

View 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;
}