mirror of
http://124.126.16.154:8888/singularity/hdk-skeleton.git
synced 2026-01-15 05:55:07 +08:00
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
$finder = PhpCsFixer\Finder::create()->in([
|
$finder = PhpCsFixer\Finder::create()->in([
|
||||||
__DIR__ . '/app',
|
__DIR__ . '/app',
|
||||||
__DIR__ . '/test',
|
__DIR__ . '/tests',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$config = new PhpCsFixer\Config();
|
$config = new PhpCsFixer\Config();
|
||||||
|
|||||||
59
app/Constant/ErrorCode.php
Normal file
59
app/Constant/ErrorCode.php
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
<?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
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @Message("common_error.params.error.license.key.required")
|
||||||
|
*/
|
||||||
|
public const REQUEST_PARAMS_ERROR_LICENSE_KEY_REQUIRED = 1030511;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Message("common_error.params.error.license.key.invalid")
|
||||||
|
*/
|
||||||
|
public const REQUEST_PARAMS_ERROR_LICENSE_KEY_INVALID = 1030512;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Message("common_error.params.error.license.biosId.required")
|
||||||
|
*/
|
||||||
|
public const REQUEST_PARAMS_ERROR_LICENSE_BIOS_ID_REQUIRED = 1030521;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Message("common_error.params.error.license.biosId.duplicate")
|
||||||
|
*/
|
||||||
|
public const REQUEST_PARAMS_ERROR_LICENSE_BIOS_ID_DUPLICATE = 1030522;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Message("common_error.params.error.license.email.duplicate")
|
||||||
|
*/
|
||||||
|
public const REQUEST_PARAMS_ERROR_LICENSE_EMAIL_DUPLICATE = 1030531;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Message("common_error.auth.forbidden.create.activation")
|
||||||
|
*/
|
||||||
|
public const FORBIDDEN_CREATE_ACTIVATION = 2040321;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Message("common_error.auth.forbidden.unactivated_device")
|
||||||
|
*/
|
||||||
|
public const FORBIDDEN_UNACTIVATED_DEVICE = 2040322;
|
||||||
|
}
|
||||||
@@ -15,6 +15,8 @@ namespace Test;
|
|||||||
use Hyperf\Testing\Client;
|
use Hyperf\Testing\Client;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
|
use function Hyperf\Support\make;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class HttpTestCase.
|
* Class HttpTestCase.
|
||||||
* @method get($uri, $data = [], $headers = [])
|
* @method get($uri, $data = [], $headers = [])
|
||||||
|
|||||||
@@ -11,7 +11,9 @@
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// uses(Tests\TestCase::class)->in('Feature');
|
use Test\HttpTestCase;
|
||||||
|
|
||||||
|
uses(HttpTestCase::class);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user