Skip to content

Commit

Permalink
doc: Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Mar 12, 2021
1 parent 522de3c commit 2adae8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ abort(ResponseCodeEnum::SERVICE_LOGIN_ERROR);
<?php
namespace App\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
{
// 业务操作正确码:1xx、2xx、3xx 开头,后拼接 3 位
// 200 + 001 => 200001,也就是有 001 ~ 999 个编号可以用来表示业务成功的情况,当然你可以根据实际需求继续增加位数,但必须要求是 200 开头
Expand Down

0 comments on commit 2adae8c

Please sign in to comment.