composer installphp bin/hyperf.php vendor:publish hyperf-extension/jwt
php bin/hyperf.php gen:jwt-secret
php bin/hyperf.php gen:jwt-keypairphp bin/hyperf.php migratephp bin/hyperf.php db:seed// 数据是用户模型定义的 getJwtCustomClaims
$user = Context::get('user');
$user['id']use App\Resource\Common\BaseResource;
return new BaseResource($list);use App\Resource\User\IndexResource;
return IndexResource::collection($list)->additional(withAdditional());throw new BusinessException(409, '手机号已存在');