mirror of
http://124.126.16.154:8888/singularity/hdk-skeleton.git
synced 2026-01-15 06:15:08 +08:00
@@ -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
|
||||
{
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user