mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 17:07:49 +08:00
first commit
This commit is contained in:
22
app/Constants/ResultCode.php
Normal file
22
app/Constants/ResultCode.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Constants;
|
||||
|
||||
use Hyperf\Constants\AbstractConstants;
|
||||
use Hyperf\Constants\Annotation\Constants;
|
||||
use Hyperf\Constants\Annotation\Message;
|
||||
use Hyperf\Constants\EnumConstantsTrait;
|
||||
|
||||
#[Constants]
|
||||
class ResultCode extends AbstractConstants
|
||||
{
|
||||
use EnumConstantsTrait;
|
||||
|
||||
#[Message("success")]
|
||||
final public const int SUCCESS = 0;
|
||||
|
||||
#[Message("failed")]
|
||||
final public const int ERROR = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user