This commit is contained in:
Aether
2025-10-17 15:42:10 +08:00
parent 9052c7069f
commit c21362da54
8 changed files with 8 additions and 158 deletions

View File

@@ -4,7 +4,6 @@ declare(strict_types=1);
namespace App\JsonRpc\Service;
use Aether\AetherCrudService;
use Aether\AetherModel;
use Aether\AetherValidator;
use Aether\Exception\BusinessException;
@@ -14,10 +13,10 @@ use App\Model\Campus;
use App\Model\Teacher;
use App\Validator\CampusValidator;
use App\Validator\TeacherValidator;
use DHD\Contract\DataServiceInterface;
use Exception;
use Hyperf\Di\Annotation\Inject;
use Hyperf\RpcServer\Annotation\RpcService;
use DHD\Contract\DataServiceInterface;
#[RpcService(name: 'DataService', server: 'jsonrpc-http', protocol: 'jsonrpc-http', publishTo: 'nacos')]
class DataService implements DataServiceInterface
@@ -45,7 +44,7 @@ class DataService implements DataServiceInterface
*/
public function getCampuses(array $data): array
{
return $this->campusService->list($data);
return $this->campusModel->list($data);
}
/**
@@ -135,7 +134,7 @@ class DataService implements DataServiceInterface
*/
public function getTeachers(array $data): array
{
return $this->teacherService->list($data);
return $this->teacherModel->list($data);
}
/**