diff --git a/app/Constant/ErrorCode.php b/app/Constant/ErrorCode.php deleted file mode 100644 index a1cdc3f..0000000 --- a/app/Constant/ErrorCode.php +++ /dev/null @@ -1,59 +0,0 @@ - - * 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 李东云 - * 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; -} diff --git a/phpstan.neon b/phpstan.neon index 8225941..40c39e1 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -21,4 +21,5 @@ parameters: - '#Template type [a-zA-Z0-9]+ of method [a-zA-Z0-9\\_]+::[a-zA-Z0-9_]+\(\) is not referenced in a parameter.#' - '#Call to an undefined method Hyperf\\Database\\Query\\Builder::firstOrFail\(\).#' - '#Call to an undefined method Hyperf\\Contract\\SessionInterface::isValidId\(\).#' - - '#Call to an undefined method LightSaml\\Model\\Protocol\\SamlMessage::setInResponseTo\(\).#' \ No newline at end of file + - '#Call to an undefined method LightSaml\\Model\\Protocol\\SamlMessage::setInResponseTo\(\).#' + - '#Class App\\Constants\\ErrorCode not found.#' \ No newline at end of file