diff --git a/config/response.php b/config/response.php index da13645..3da2001 100644 --- a/config/response.php +++ b/config/response.php @@ -10,7 +10,7 @@ */ return [ - 'enum' => \Jiannei\Enum\Laravel\Repositories\Enums\ResponseCodeEnum::class, + 'enum' => \Jiannei\Enum\Laravel\Repositories\Enums\HttpStatusCodeEnum::class, - 'validation_error_code' => \Jiannei\Enum\Laravel\Repositories\Enums\ResponseCodeEnum::HTTP_UNPROCESSABLE_ENTITY, + 'validation_error_code' => \Jiannei\Enum\Laravel\Repositories\Enums\HttpStatusCodeEnum::HTTP_UNPROCESSABLE_ENTITY, ]; diff --git a/tests/Repositories/Enums/ResponseCodeEnum.php b/tests/Repositories/Enums/ResponseCodeEnum.php index 35cbc1e..7a05c39 100644 --- a/tests/Repositories/Enums/ResponseCodeEnum.php +++ b/tests/Repositories/Enums/ResponseCodeEnum.php @@ -11,9 +11,9 @@ namespace Jiannei\Response\Laravel\Tests\Repositories\Enums; -use Jiannei\Enum\Laravel\Repositories\Enums\ResponseCodeEnum as BaseResponseCodeEnum; +use Jiannei\Enum\Laravel\Repositories\Enums\HttpStatusCodeEnum; -class ResponseCodeEnum extends BaseResponseCodeEnum +class ResponseCodeEnum extends HttpStatusCodeEnum { // 定制/覆盖 HTTP 协议状态码 const HTTP_OK = 200;