build(composer): 更新初始化文件

Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
This commit is contained in:
李东云
2023-05-12 16:02:32 +08:00
parent be7711a03b
commit 32cf9854a5
4 changed files with 12 additions and 37 deletions

View File

@@ -1,26 +0,0 @@
<?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

@@ -2,23 +2,18 @@
declare(strict_types=1);
/**
* This file is part of Hyperf.
* ErrorCode.php@LuxAlign
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
* Powered by PhpStorm
*/
namespace App\Constants;
use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;
use Singularity\HDK\Core\Constants\CommonErrorCode;
#[Constants]
class ErrorCode extends AbstractConstants
class ErrorCode extends CommonErrorCode
{
/**
* @Message("Server Error")
*/
public const SERVER_ERROR = 500;
}

View File

@@ -9,6 +9,9 @@ declare(strict_types=1);
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
use function Hyperf\Support\env;
return [
'default' => [
'driver' => env('DB_DRIVER', 'mysql'),

View File

@@ -9,6 +9,9 @@ declare(strict_types=1);
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
use function Hyperf\Support\env;
return [
'default' => [
'host' => env('REDIS_HOST', 'localhost'),