mirror of
http://124.126.16.154:8888/singularity/hdk-skeleton.git
synced 2026-01-15 05:35:07 +08:00
feat: 补全错误码和CoreMiddleware的依赖
Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
This commit is contained in:
26
app/Constant/ErrorCode.php
Normal file
26
app/Constant/ErrorCode.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* ErrorCode.php@LuxAlign
|
||||
*
|
||||
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
||||
* Powered by PhpStorm
|
||||
* Created on 2023/4/14
|
||||
*/
|
||||
|
||||
namespace App\Constant;
|
||||
|
||||
use Hyperf\Constants\Annotation\Constants;
|
||||
use Singularity\HDK\Core\Constants\CommonErrorCode;
|
||||
|
||||
/**
|
||||
* App\Constant\ErrorCode@LuxAlign
|
||||
*
|
||||
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
||||
* Powered by PhpStorm
|
||||
* Created on 2023/4/14
|
||||
*/
|
||||
#[Constants]
|
||||
class ErrorCode extends CommonErrorCode
|
||||
{
|
||||
|
||||
}
|
||||
20
config/autoload/dependencies.php
Normal file
20
config/autoload/dependencies.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* dependency.php@LuxAlign
|
||||
*
|
||||
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
||||
* Powered by PhpStorm
|
||||
* Created on 2023/4/12
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Constant\ErrorCode;
|
||||
use Hyperf\HttpServer\CoreMiddleware;
|
||||
use Singularity\HDK\Core\Constants\CommonErrorCode;
|
||||
use Singularity\HDK\Core\Middleware\CommonCoreMiddleware;
|
||||
|
||||
return [
|
||||
CoreMiddleware::class => CommonCoreMiddleware::class,
|
||||
CommonErrorCode::class => ErrorCode::class,
|
||||
];
|
||||
Reference in New Issue
Block a user