From 25284c8d0eeabe962182df078f4ce0821e56e332 Mon Sep 17 00:00:00 2001 From: Aether Date: Fri, 10 Oct 2025 17:17:55 +0800 Subject: [PATCH] .. --- app/JsonRpc/Service/DataService.php | 2 +- composer.json | 8 +++- composer.lock | 41 ++++++++++++++++-- .../src/Contract/DataServiceInterface.php | 43 ------------------- 4 files changed, 44 insertions(+), 50 deletions(-) delete mode 100644 extend/MicroService/src/Contract/DataServiceInterface.php diff --git a/app/JsonRpc/Service/DataService.php b/app/JsonRpc/Service/DataService.php index bf26f0c..d6af3d8 100644 --- a/app/JsonRpc/Service/DataService.php +++ b/app/JsonRpc/Service/DataService.php @@ -14,7 +14,7 @@ use App\Validator\TeacherValidator; use Exception; use Hyperf\Di\Annotation\Inject; use Hyperf\RpcServer\Annotation\RpcService; -use MicroService\Contract\DataServiceInterface; +use DHD\Contract\DataServiceInterface; #[RpcService(name: 'DataService', server: 'jsonrpc-http', protocol: 'jsonrpc-http', publishTo: 'nacos')] class DataService implements DataServiceInterface diff --git a/composer.json b/composer.json index be2648e..e88aab6 100755 --- a/composer.json +++ b/composer.json @@ -14,6 +14,7 @@ "require": { "php": ">=8.1", "aether/hyperf": "dev-master", + "dhd/contract": "dev-master", "hyperf/cache": "~3.1.0", "hyperf/command": "~3.1.0", "hyperf/config": "~3.1.0", @@ -52,6 +53,10 @@ { "type": "git", "url": "https://gitee.com/devAether666/aether-hyperf.git" + }, + { + "type": "git", + "url": "https://gitee.com/devAether666/dhd-contract.git" } ], "suggest": { @@ -63,8 +68,7 @@ }, "autoload": { "psr-4": { - "App\\": "app/", - "MicroService\\": "extend/MicroService/src/" + "App\\": "app/" }, "files": [] }, diff --git a/composer.lock b/composer.lock index 1d163a8..c4ff9df 100755 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8e6c542d87ccd4c4654a4adb71436e17", + "content-hash": "1e1601cc18fc4c43445818d441fbcd82", "packages": [ { "name": "aether/hyperf", @@ -12,7 +12,7 @@ "source": { "type": "git", "url": "https://gitee.com/devAether666/aether-hyperf.git", - "reference": "7dd9644f6b393eb3b9943b78bf8c3b4012c6b6cf" + "reference": "b093eaf3e8d9f7055ae856a7c89a2fcbc22a20b0" }, "require": { "hyperf/db-connection": "~3.1.0", @@ -52,7 +52,7 @@ } ], "description": "Aether Hyperf Common Components", - "time": "2025-10-09T05:51:23+00:00" + "time": "2025-10-09T09:37:27+00:00" }, { "name": "carbonphp/carbon-doctrine-types", @@ -123,6 +123,38 @@ ], "time": "2024-02-09T16:56:22+00:00" }, + { + "name": "dhd/contract", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://gitee.com/devAether666/dhd-contract.git", + "reference": "5e1f5353356c8fef88684420a4d77b31b79930a4" + }, + "default-branch": true, + "type": "library", + "autoload": { + "psr-4": { + "DHD\\Contract\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Aether\\Tests\\": "tests/" + } + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aether", + "email": "aether.dev.666@gmail.com" + } + ], + "description": "DHD Micro Service Contract Package", + "time": "2025-10-09T06:31:01+00:00" + }, { "name": "doctrine/deprecations", "version": "1.1.5", @@ -10697,7 +10729,8 @@ "aliases": [], "minimum-stability": "dev", "stability-flags": { - "aether/hyperf": 20 + "aether/hyperf": 20, + "dhd/contract": 20 }, "prefer-stable": true, "prefer-lowest": false, diff --git a/extend/MicroService/src/Contract/DataServiceInterface.php b/extend/MicroService/src/Contract/DataServiceInterface.php deleted file mode 100644 index 228124a..0000000 --- a/extend/MicroService/src/Contract/DataServiceInterface.php +++ /dev/null @@ -1,43 +0,0 @@ -