feat : pay Adapter
Some checks are pending
Build Docker / build (push) Waiting to run

This commit is contained in:
2025-09-04 23:08:54 +08:00
parent 595d3d3276
commit f4b812f861
25 changed files with 694 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
<?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;
}