feat: 补全错误码和CoreMiddleware的依赖

Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
This commit is contained in:
李东云
2023-05-12 15:47:46 +08:00
parent 6259da0ad3
commit 9d61e116e7
2 changed files with 46 additions and 0 deletions

View 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
{
}

View 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,
];