。。
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user