Skip to content

Commit

Permalink
pref: ResponseCodeEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Dec 26, 2020
1 parent 8c32975 commit 460506b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
4 changes: 2 additions & 2 deletions tests/Repositories/Enums/ResponseCodeEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 460506b

Please sign in to comment.