Files
hyperf_test/app/Constants/ReturnCode.php
ctexthuang f4b812f861
Some checks are pending
Build Docker / build (push) Waiting to run
feat : pay Adapter
2025-09-04 23:08:54 +08:00

31 lines
492 B
PHP

<?php
declare(strict_types=1);
namespace App\Constants;
use Hyperf\Constants\Annotation\Constants;
use Hyperf\Constants\Annotation\Message;
use Hyperf\Constants\EnumConstantsTrait;
#[Constants]
enum ReturnCode: int
{
use EnumConstantsTrait;
#[Message("Server Error!")]
case SERVER_ERROR = 500;
/**
* 返回成功
*/
#[Message('return success')]
case SUCCESS = 0;
/**
* 返回失败
*/
#[Message('return fail')]
case ERROR = 1;
}