├── .gitignore ├── README.md ├── shop ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Controller │ │ ├── AbstractController.php │ │ ├── IndexController.php │ │ ├── OrderController.php │ │ └── UserController.php │ ├── Exception │ │ └── Handler │ │ │ └── AppExceptionHandler.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ └── Model.php │ └── Service │ │ ├── OrderService.php │ │ └── UserService.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ └── server.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_consumer_user ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ ├── IndexController.php │ │ └── UserController.php │ ├── Exception │ │ └── Handler │ │ │ └── AppExceptionHandler.php │ ├── JsonRpc │ │ ├── UserService.php │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ └── Model.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ ├── server.php │ │ └── services.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_consumer_user_9501 ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ ├── IndexController.php │ │ └── UserController.php │ ├── Exception │ │ └── Handler │ │ │ └── AppExceptionHandler.php │ ├── JsonRpc │ │ ├── UserService.php │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ └── Model.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ ├── server.php │ │ └── services.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_consumer_user_9502 ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── CircuitBreaker │ │ └── GlobalFallback.php │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ ├── IndexController.php │ │ └── UserController.php │ ├── Exception │ │ └── Handler │ │ │ └── AppExceptionHandler.php │ ├── JsonRpc │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ └── Model.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── metric.php │ │ ├── middlewares.php │ │ ├── opentracing.php │ │ ├── processes.php │ │ ├── server.php │ │ └── services.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_order ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Controller │ │ ├── AbstractController.php │ │ ├── IndexController.php │ │ └── OrderController.php │ ├── Exception │ │ └── Handler │ │ │ └── AppExceptionHandler.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ └── Model.php │ └── Service │ │ └── OrderService.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ └── server.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_provider_user ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ └── IndexController.php │ ├── Exception │ │ └── Handler │ │ │ ├── AppExceptionHandler.php │ │ │ └── JsonRpcExceptionHandler.php │ ├── JsonRpc │ │ ├── UserService.php │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ ├── Model.php │ │ └── User.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ └── server.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_provider_user_9601 ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ └── IndexController.php │ ├── Exception │ │ └── Handler │ │ │ ├── AppExceptionHandler.php │ │ │ └── JsonRpcExceptionHandler.php │ ├── JsonRpc │ │ ├── UserService.php │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ ├── Model.php │ │ └── User.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ ├── server.php │ │ └── services.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_provider_user_9602 ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ └── IndexController.php │ ├── Exception │ │ └── Handler │ │ │ ├── AppExceptionHandler.php │ │ │ └── JsonRpcExceptionHandler.php │ ├── JsonRpc │ │ ├── UserService.php │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ ├── Model.php │ │ └── User.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ ├── server.php │ │ └── services.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_provider_user_9603 ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ └── IndexController.php │ ├── Exception │ │ └── Handler │ │ │ ├── AppExceptionHandler.php │ │ │ └── JsonRpcExceptionHandler.php │ ├── JsonRpc │ │ ├── UserService.php │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ ├── Model.php │ │ └── User.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ ├── server.php │ │ └── services.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_provider_user_9604 ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ └── IndexController.php │ ├── Exception │ │ └── Handler │ │ │ ├── AppExceptionHandler.php │ │ │ └── JsonRpcExceptionHandler.php │ ├── JsonRpc │ │ ├── UserService.php │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ ├── Model.php │ │ └── User.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ ├── server.php │ │ └── services.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_provider_user_9605 ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ └── IndexController.php │ ├── Exception │ │ └── Handler │ │ │ ├── AppExceptionHandler.php │ │ │ └── JsonRpcExceptionHandler.php │ ├── JsonRpc │ │ ├── UserService.php │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ ├── Model.php │ │ └── User.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── config_center.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── opentracing.php │ │ ├── processes.php │ │ ├── rate_limit.php │ │ ├── redis.php │ │ ├── server.php │ │ └── services.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_provider_user_9606 ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ └── IndexController.php │ ├── Exception │ │ └── Handler │ │ │ ├── AppExceptionHandler.php │ │ │ └── JsonRpcExceptionHandler.php │ ├── JsonRpc │ │ ├── UserService.php │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ ├── Model.php │ │ └── User.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ ├── server.php │ │ └── services.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php ├── shop_provider_user_9607 ├── .env.example ├── .github │ └── workflows │ │ ├── Dockerfile │ │ ├── build.yml │ │ └── release.yml ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app │ ├── Constants │ │ └── ErrorCode.php │ ├── Controller │ │ ├── AbstractController.php │ │ └── IndexController.php │ ├── Exception │ │ └── Handler │ │ │ ├── AppExceptionHandler.php │ │ │ └── JsonRpcExceptionHandler.php │ ├── JsonRpc │ │ ├── UserService.php │ │ └── UserServiceInterface.php │ ├── Listener │ │ └── DbQueryExecutedListener.php │ ├── Model │ │ ├── Model.php │ │ └── User.php │ └── Tools │ │ └── Result.php ├── bin │ └── hyperf.php ├── composer.json ├── composer.lock ├── config │ ├── autoload │ │ ├── annotations.php │ │ ├── aspects.php │ │ ├── cache.php │ │ ├── commands.php │ │ ├── databases.php │ │ ├── dependencies.php │ │ ├── devtool.php │ │ ├── exceptions.php │ │ ├── listeners.php │ │ ├── logger.php │ │ ├── middlewares.php │ │ ├── processes.php │ │ ├── server.php │ │ └── services.php │ ├── config.php │ ├── container.php │ └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test │ ├── Cases │ └── ExampleTest.php │ ├── HttpTestCase.php │ └── bootstrap.php └── shop_user ├── .env ├── .env.example ├── .gitignore ├── .gitlab-ci.yml ├── .php-cs-fixer.php ├── .phpstorm.meta.php ├── Dockerfile ├── README.md ├── app ├── Controller │ ├── AbstractController.php │ ├── IndexController.php │ └── UserController.php ├── Exception │ └── Handler │ │ └── AppExceptionHandler.php ├── Listener │ └── DbQueryExecutedListener.php ├── Model │ └── Model.php └── Service │ └── UserService.php ├── bin └── hyperf.php ├── composer.json ├── composer.lock ├── config ├── autoload │ ├── annotations.php │ ├── aspects.php │ ├── cache.php │ ├── commands.php │ ├── databases.php │ ├── dependencies.php │ ├── devtool.php │ ├── exceptions.php │ ├── listeners.php │ ├── logger.php │ ├── middlewares.php │ ├── processes.php │ └── server.php ├── config.php ├── container.php └── routes.php ├── deploy.test.yml ├── phpstan.neon ├── phpunit.xml └── test ├── Cases └── ExampleTest.php ├── HttpTestCase.php └── bootstrap.php /.gitignore: -------------------------------------------------------------------------------- 1 | # phpstorm project files 2 | .idea 3 | .DS_Store 4 | 5 | -------------------------------------------------------------------------------- /shop/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop/app/Controller/OrderController.php: -------------------------------------------------------------------------------- 1 | orderService->getInfo(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /shop/app/Controller/UserController.php: -------------------------------------------------------------------------------- 1 | userService->getInfo(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /shop/app/Model/Model.php: -------------------------------------------------------------------------------- 1 | get(Hyperf\Contract\ApplicationInterface::class); 22 | $application->run(); 23 | })(); 24 | -------------------------------------------------------------------------------- /shop/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'http' => [ 15 | Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class, 16 | App\Exception\Handler\AppExceptionHandler::class, 17 | ], 18 | ], 19 | ]; 20 | -------------------------------------------------------------------------------- /shop/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_consumer_user/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_consumer_user/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_consumer_user/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_consumer_user/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_consumer_user/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | __METHOD__, 20 | ]; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /shop_consumer_user/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | $code, 27 | 'message' => $message, 28 | 'data' => $data, 29 | ]; 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /shop_consumer_user/bin/hyperf.php: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | get(Hyperf\Contract\ApplicationInterface::class); 23 | $application->run(); 24 | })(); 25 | -------------------------------------------------------------------------------- /shop_consumer_user/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_consumer_user/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_consumer_user/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | App\JsonRpc\UserService::class, 14 | ]; 15 | -------------------------------------------------------------------------------- /shop_consumer_user/config/autoload/exceptions.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'http' => [ 7 | Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class, 8 | App\Exception\Handler\AppExceptionHandler::class, 9 | ], 10 | ], 11 | ]; 12 | -------------------------------------------------------------------------------- /shop_consumer_user/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_consumer_user/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_consumer_user/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_consumer_user_9501/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | __METHOD__, 20 | ]; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | $code, 27 | 'message' => $message, 28 | 'data' => $data, 29 | ]; 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | App\JsonRpc\UserService::class, 14 | ]; 15 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/config/autoload/exceptions.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'http' => [ 7 | Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class, 8 | App\Exception\Handler\AppExceptionHandler::class, 9 | ], 10 | ], 11 | ]; 12 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_consumer_user_9501/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_consumer_user_9502/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | __METHOD__, 20 | ]; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | $code, 27 | 'message' => $message, 28 | 'data' => $data, 29 | ]; 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | App\JsonRpc\UserService::class, 14 | Hyperf\CircuitBreaker\FallbackInterface::class => App\CircuitBreaker\GlobalFallback::class, 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/config/autoload/exceptions.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'http' => [ 7 | Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class, 8 | App\Exception\Handler\AppExceptionHandler::class, 9 | ], 10 | ], 11 | ]; 12 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | \Hyperf\Tracer\Middleware\TraceMiddleware::class, 15 | \Hyperf\Metric\Middleware\MetricMiddleware::class, 16 | ], 17 | ]; 18 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | get(Prometheus\CollectorRegistry::class); 22 | $renderer = new Prometheus\RenderTextFormat(); 23 | return $renderer->render($registry->getMetricFamilySamples()); 24 | }); 25 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/deploy.test.yml: -------------------------------------------------------------------------------- 1 | version: '3.7' 2 | services: 3 | hyperf: 4 | image: $REGISTRY_URL/$PROJECT_NAME:test 5 | environment: 6 | - "APP_PROJECT=hyperf" 7 | - "APP_ENV=test" 8 | ports: 9 | - 9501:9501 10 | deploy: 11 | replicas: 1 12 | restart_policy: 13 | condition: on-failure 14 | delay: 5s 15 | max_attempts: 5 16 | update_config: 17 | parallelism: 2 18 | delay: 5s 19 | order: start-first 20 | networks: 21 | - hyperf_net 22 | configs: 23 | - source: hyperf_v1.0 24 | target: /opt/www/.env 25 | configs: 26 | hyperf_v1.0: 27 | external: true 28 | networks: 29 | hyperf_net: 30 | external: true 31 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/phpstan.neon: -------------------------------------------------------------------------------- 1 | # Magic behaviour with __get, __set, __call and __callStatic is not exactly static analyser-friendly :) 2 | # Fortunately, You can ingore it by the following config. 3 | # 4 | # vendor/bin/phpstan analyse app --memory-limit 200M -l 0 5 | # 6 | parameters: 7 | reportUnmatchedIgnoredErrors: false 8 | ignoreErrors: 9 | - '#Static call to instance method Hyperf\\HttpServer\\Router\\Router::[a-zA-Z0-9\\_]+\(\)#' 10 | - '#Static call to instance method Hyperf\\DbConnection\\Db::[a-zA-Z0-9\\_]+\(\)#' 11 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_consumer_user_9502/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_order/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_order/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_order/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_order/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_order/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop_order/app/Controller/OrderController.php: -------------------------------------------------------------------------------- 1 | orderService->getInfo(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /shop_order/app/Model/Model.php: -------------------------------------------------------------------------------- 1 | get(Hyperf\Contract\ApplicationInterface::class); 22 | $application->run(); 23 | })(); 24 | -------------------------------------------------------------------------------- /shop_order/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_order/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_order/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'http' => [ 15 | Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class, 16 | App\Exception\Handler\AppExceptionHandler::class, 17 | ], 18 | ], 19 | ]; 20 | -------------------------------------------------------------------------------- /shop_order/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_order/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_order/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_provider_user/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_provider_user/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_provider_user/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_provider_user/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_provider_user/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop_provider_user/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | 'integer', 'gender' => 'integer']; 29 | 30 | // 自定义时间戳的格式 U表示int 31 | protected $dateFormat = 'U'; 32 | } -------------------------------------------------------------------------------- /shop_provider_user/app/Tools/Result.php: -------------------------------------------------------------------------------- 1 | $code, 27 | 'message' => $message, 28 | 'data' => $data, 29 | ]; 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /shop_provider_user/bin/hyperf.php: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | get(Hyperf\Contract\ApplicationInterface::class); 23 | $application->run(); 24 | })(); 25 | -------------------------------------------------------------------------------- /shop_provider_user/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_provider_user/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_provider_user/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'jsonrpc-http' => [ 7 | App\Exception\Handler\JsonRpcExceptionHandler::class, 8 | ], 9 | ], 10 | ]; 11 | -------------------------------------------------------------------------------- /shop_provider_user/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_provider_user/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_provider_user/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_provider_user_9601/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_provider_user_9601/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_provider_user_9601/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_provider_user_9601/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_provider_user_9601/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop_provider_user_9601/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | 'integer', 'gender' => 'integer']; 29 | 30 | // 自定义时间戳的格式 U表示int 31 | protected $dateFormat = 'U'; 32 | } -------------------------------------------------------------------------------- /shop_provider_user_9601/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_provider_user_9601/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_provider_user_9601/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'jsonrpc-http' => [ 7 | App\Exception\Handler\JsonRpcExceptionHandler::class, 8 | ], 9 | ], 10 | ]; 11 | -------------------------------------------------------------------------------- /shop_provider_user_9601/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_provider_user_9601/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_provider_user_9601/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_provider_user_9602/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_provider_user_9602/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_provider_user_9602/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_provider_user_9602/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_provider_user_9602/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop_provider_user_9602/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | 'integer', 'gender' => 'integer']; 29 | 30 | // 自定义时间戳的格式 U表示int 31 | protected $dateFormat = 'U'; 32 | } -------------------------------------------------------------------------------- /shop_provider_user_9602/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_provider_user_9602/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_provider_user_9602/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'jsonrpc-http' => [ 7 | App\Exception\Handler\JsonRpcExceptionHandler::class, 8 | ], 9 | ], 10 | ]; 11 | -------------------------------------------------------------------------------- /shop_provider_user_9602/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_provider_user_9602/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_provider_user_9602/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_provider_user_9603/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_provider_user_9603/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_provider_user_9603/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_provider_user_9603/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_provider_user_9603/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop_provider_user_9603/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | 'integer', 'gender' => 'integer']; 29 | 30 | // 自定义时间戳的格式 U表示int 31 | protected $dateFormat = 'U'; 32 | } -------------------------------------------------------------------------------- /shop_provider_user_9603/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_provider_user_9603/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_provider_user_9603/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'jsonrpc-http' => [ 7 | App\Exception\Handler\JsonRpcExceptionHandler::class, 8 | ], 9 | ], 10 | ]; 11 | -------------------------------------------------------------------------------- /shop_provider_user_9603/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_provider_user_9603/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_provider_user_9603/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_provider_user_9604/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_provider_user_9604/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_provider_user_9604/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_provider_user_9604/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_provider_user_9604/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop_provider_user_9604/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | 'integer', 'gender' => 'integer']; 29 | 30 | // 自定义时间戳的格式 U表示int 31 | protected $dateFormat = 'U'; 32 | } -------------------------------------------------------------------------------- /shop_provider_user_9604/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_provider_user_9604/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_provider_user_9604/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'jsonrpc-http' => [ 7 | App\Exception\Handler\JsonRpcExceptionHandler::class, 8 | ], 9 | ], 10 | ]; 11 | -------------------------------------------------------------------------------- /shop_provider_user_9604/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_provider_user_9604/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_provider_user_9604/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_provider_user_9605/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_provider_user_9605/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_provider_user_9605/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_provider_user_9605/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_provider_user_9605/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop_provider_user_9605/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | 'integer', 'gender' => 'integer']; 29 | 30 | // 自定义时间戳的格式 U表示int 31 | protected $dateFormat = 'U'; 32 | } -------------------------------------------------------------------------------- /shop_provider_user_9605/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_provider_user_9605/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_provider_user_9605/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'jsonrpc-http' => [ 7 | App\Exception\Handler\JsonRpcExceptionHandler::class, 8 | ], 9 | ], 10 | ]; 11 | -------------------------------------------------------------------------------- /shop_provider_user_9605/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 7 | \Hyperf\Tracer\Middleware\TraceMiddleware::class, 8 | ], 9 | ]; 10 | -------------------------------------------------------------------------------- /shop_provider_user_9605/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 1, 8 | // 每次请求消耗令牌数 9 | 'consume' => 1, 10 | // 令牌桶最大容量 11 | 'capacity' => 2, 12 | // 触发限流时回调方法 13 | 'limitCallback' => [], 14 | // 排队超时时间,至少是1秒 15 | 'waitTimeout' => 1, 16 | ]; 17 | -------------------------------------------------------------------------------- /shop_provider_user_9605/config/container.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_provider_user_9605/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_provider_user_9606/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_provider_user_9606/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_provider_user_9606/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_provider_user_9606/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_provider_user_9606/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop_provider_user_9606/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | 'integer', 'gender' => 'integer']; 29 | 30 | // 自定义时间戳的格式 U表示int 31 | protected $dateFormat = 'U'; 32 | } -------------------------------------------------------------------------------- /shop_provider_user_9606/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_provider_user_9606/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_provider_user_9606/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'jsonrpc-http' => [ 7 | App\Exception\Handler\JsonRpcExceptionHandler::class, 8 | ], 9 | ], 10 | ]; 11 | -------------------------------------------------------------------------------- /shop_provider_user_9606/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_provider_user_9606/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_provider_user_9606/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_provider_user_9607/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_provider_user_9607/.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build Docker 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout code 10 | uses: actions/checkout@v2 11 | - name: Build 12 | run: cp -rf .github/workflows/Dockerfile . && docker build -t hyperf . 13 | -------------------------------------------------------------------------------- /shop_provider_user_9607/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | # Sequence of patterns matched against refs/tags 4 | tags: 5 | - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 6 | 7 | name: Release 8 | 9 | jobs: 10 | release: 11 | name: Release 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout code 15 | uses: actions/checkout@v2 16 | - name: Create Release 17 | id: create_release 18 | uses: actions/create-release@v1 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | with: 22 | tag_name: ${{ github.ref }} 23 | release_name: Release ${{ github.ref }} 24 | draft: false 25 | prerelease: false 26 | -------------------------------------------------------------------------------- /shop_provider_user_9607/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_provider_user_9607/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop_provider_user_9607/app/JsonRpc/UserServiceInterface.php: -------------------------------------------------------------------------------- 1 | 'integer', 'gender' => 'integer']; 29 | 30 | // 自定义时间戳的格式 U表示int 31 | protected $dateFormat = 'U'; 32 | } -------------------------------------------------------------------------------- /shop_provider_user_9607/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_provider_user_9607/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_provider_user_9607/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 6 | 'jsonrpc-http' => [ 7 | App\Exception\Handler\JsonRpcExceptionHandler::class, 8 | ], 9 | ], 10 | ]; 11 | -------------------------------------------------------------------------------- /shop_provider_user_9607/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_provider_user_9607/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_provider_user_9607/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shop_user/.env: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_user/.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=skeleton 2 | APP_ENV=dev 3 | 4 | DB_DRIVER=mysql 5 | DB_HOST=localhost 6 | DB_PORT=3306 7 | DB_DATABASE=hyperf 8 | DB_USERNAME=root 9 | DB_PASSWORD= 10 | DB_CHARSET=utf8mb4 11 | DB_COLLATION=utf8mb4_unicode_ci 12 | DB_PREFIX= 13 | 14 | REDIS_HOST=localhost 15 | REDIS_AUTH=(null) 16 | REDIS_PORT=6379 17 | REDIS_DB=0 -------------------------------------------------------------------------------- /shop_user/.gitignore: -------------------------------------------------------------------------------- 1 | .buildpath 2 | .settings/ 3 | .project 4 | *.patch 5 | .idea/ 6 | .git/ 7 | runtime/ 8 | vendor/ 9 | .phpintel/ 10 | .env 11 | .DS_Store 12 | .phpunit* 13 | *.cache 14 | -------------------------------------------------------------------------------- /shop_user/.phpstorm.meta.php: -------------------------------------------------------------------------------- 1 | request->input('user', 'Hyperf'); 19 | $method = $this->request->getMethod(); 20 | 21 | return [ 22 | 'method' => $method, 23 | 'message' => "Hello {$user}.", 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shop_user/app/Controller/UserController.php: -------------------------------------------------------------------------------- 1 | userService->getInfo(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /shop_user/app/Model/Model.php: -------------------------------------------------------------------------------- 1 | get(Hyperf\Contract\ApplicationInterface::class); 22 | $application->run(); 23 | })(); 24 | -------------------------------------------------------------------------------- /shop_user/config/autoload/annotations.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'paths' => [ 15 | BASE_PATH . '/app', 16 | ], 17 | 'ignore_annotations' => [ 18 | 'mixin', 19 | ], 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /shop_user/config/autoload/aspects.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'driver' => Hyperf\Cache\Driver\RedisDriver::class, 15 | 'packer' => Hyperf\Utils\Packer\PhpSerializerPacker::class, 16 | 'prefix' => 'c:', 17 | ], 18 | ]; 19 | -------------------------------------------------------------------------------- /shop_user/config/autoload/commands.php: -------------------------------------------------------------------------------- 1 | [ 14 | 'http' => [ 15 | Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class, 16 | App\Exception\Handler\AppExceptionHandler::class, 17 | ], 18 | ], 19 | ]; 20 | -------------------------------------------------------------------------------- /shop_user/config/autoload/listeners.php: -------------------------------------------------------------------------------- 1 | [ 14 | ], 15 | ]; 16 | -------------------------------------------------------------------------------- /shop_user/config/autoload/processes.php: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./test 14 | 15 | 16 | 17 | 18 | ./app 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /shop_user/test/Cases/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 25 | $this->assertTrue(is_array($this->get('/'))); 26 | } 27 | } 28 | --------------------------------------------------------------------------------