This commit is contained in:
2025-08-13 18:31:52 +08:00
parent 17ad88608b
commit 275713f893
77 changed files with 10658 additions and 178 deletions

16
app/enums/ErrEnums.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
namespace app\enums;
enum ErrEnums: string
{
case MANY_REQUEST = '请求频繁请稍候再试';
case FAIL = '请求失败';
public function code(): int
{
return match($this) {
default=>500
};
}
}