|
@@ -13,7 +13,6 @@ export 'services/index.dart';
|
|
|
export 'request.dart';
|
|
|
export 'exception.dart';
|
|
|
export 'interceptor.dart';
|
|
|
-export 'listener/listener.dart';
|
|
|
|
|
|
typedef T ServiceBuilder<T extends JsonRpcClientBase>();
|
|
|
|
|
@@ -53,75 +52,72 @@ class JsonRpcProxy {
|
|
|
return _platformService!;
|
|
|
}
|
|
|
|
|
|
- AIDiagnosisService get aIDiagnosis =>
|
|
|
- findService(() => new AIDiagnosisService(currentHostAddress));
|
|
|
+ AIDiagnosisService get aIDiagnosis =>
|
|
|
+ findService(() => new AIDiagnosisService(currentHostAddress));
|
|
|
|
|
|
- ASRService get aSR =>
|
|
|
- findService(() => new ASRService(currentHostAddress));
|
|
|
+ ASRService get aSR => findService(() => new ASRService(currentHostAddress));
|
|
|
|
|
|
- AuthenticationService get authentication =>
|
|
|
- findService(() => new AuthenticationService(currentHostAddress));
|
|
|
+ AuthenticationService get authentication =>
|
|
|
+ findService(() => new AuthenticationService(currentHostAddress));
|
|
|
|
|
|
- ConnectService get connect =>
|
|
|
- findService(() => new ConnectService(currentHostAddress));
|
|
|
+ ConnectService get connect =>
|
|
|
+ findService(() => new ConnectService(currentHostAddress));
|
|
|
|
|
|
- DeviceService get device =>
|
|
|
- findService(() => new DeviceService(currentHostAddress));
|
|
|
+ DeviceService get device =>
|
|
|
+ findService(() => new DeviceService(currentHostAddress));
|
|
|
|
|
|
- EmailService get email =>
|
|
|
- findService(() => new EmailService(currentHostAddress));
|
|
|
+ EmailService get email =>
|
|
|
+ findService(() => new EmailService(currentHostAddress));
|
|
|
|
|
|
- IdentityApplyService get identityApply =>
|
|
|
- findService(() => new IdentityApplyService(currentHostAddress));
|
|
|
+ IdentityApplyService get identityApply =>
|
|
|
+ findService(() => new IdentityApplyService(currentHostAddress));
|
|
|
|
|
|
- LoginService get login =>
|
|
|
- findService(() => new LoginService(currentHostAddress));
|
|
|
+ LoginService get login =>
|
|
|
+ findService(() => new LoginService(currentHostAddress));
|
|
|
|
|
|
- OrganizationService get organization =>
|
|
|
- findService(() => new OrganizationService(currentHostAddress));
|
|
|
+ OrganizationService get organization =>
|
|
|
+ findService(() => new OrganizationService(currentHostAddress));
|
|
|
|
|
|
- PatientService get patient =>
|
|
|
- findService(() => new PatientService(currentHostAddress));
|
|
|
+ PatientService get patient =>
|
|
|
+ findService(() => new PatientService(currentHostAddress));
|
|
|
|
|
|
- PositionService get position =>
|
|
|
- findService(() => new PositionService(currentHostAddress));
|
|
|
+ PositionService get position =>
|
|
|
+ findService(() => new PositionService(currentHostAddress));
|
|
|
|
|
|
- RankService get rank =>
|
|
|
- findService(() => new RankService(currentHostAddress));
|
|
|
+ RankService get rank =>
|
|
|
+ findService(() => new RankService(currentHostAddress));
|
|
|
|
|
|
- RecordInfoService get recordInfo =>
|
|
|
- findService(() => new RecordInfoService(currentHostAddress));
|
|
|
+ RecordInfoService get recordInfo =>
|
|
|
+ findService(() => new RecordInfoService(currentHostAddress));
|
|
|
|
|
|
- RegionService get region =>
|
|
|
- findService(() => new RegionService(currentHostAddress));
|
|
|
+ RegionService get region =>
|
|
|
+ findService(() => new RegionService(currentHostAddress));
|
|
|
|
|
|
- RemedicalService get remedical =>
|
|
|
- findService(() => new RemedicalService(currentHostAddress));
|
|
|
+ RemedicalService get remedical =>
|
|
|
+ findService(() => new RemedicalService(currentHostAddress));
|
|
|
|
|
|
- ReportService get report =>
|
|
|
- findService(() => new ReportService(currentHostAddress));
|
|
|
+ ReportService get report =>
|
|
|
+ findService(() => new ReportService(currentHostAddress));
|
|
|
|
|
|
- RoleService get role =>
|
|
|
- findService(() => new RoleService(currentHostAddress));
|
|
|
+ RoleService get role =>
|
|
|
+ findService(() => new RoleService(currentHostAddress));
|
|
|
|
|
|
- SMSService get sMS =>
|
|
|
- findService(() => new SMSService(currentHostAddress));
|
|
|
+ SMSService get sMS => findService(() => new SMSService(currentHostAddress));
|
|
|
|
|
|
- StorageService get storage =>
|
|
|
- findService(() => new StorageService(currentHostAddress));
|
|
|
+ StorageService get storage =>
|
|
|
+ findService(() => new StorageService(currentHostAddress));
|
|
|
|
|
|
- UserService get user =>
|
|
|
- findService(() => new UserService(currentHostAddress));
|
|
|
+ UserService get user =>
|
|
|
+ findService(() => new UserService(currentHostAddress));
|
|
|
|
|
|
- VinnoServerService get vinnoServer =>
|
|
|
- findService(() => new VinnoServerService(currentHostAddress));
|
|
|
+ VinnoServerService get vinnoServer =>
|
|
|
+ findService(() => new VinnoServerService(currentHostAddress));
|
|
|
|
|
|
- DBLogService get dBLog =>
|
|
|
- findService(() => new DBLogService(currentHostAddress));
|
|
|
-
|
|
|
- LiveConsultationService get liveConsultation =>
|
|
|
- findService(() => new LiveConsultationService(currentHostAddress));
|
|
|
+ DBLogService get dBLog =>
|
|
|
+ findService(() => new DBLogService(currentHostAddress));
|
|
|
|
|
|
+ LiveConsultationService get liveConsultation =>
|
|
|
+ findService(() => new LiveConsultationService(currentHostAddress));
|
|
|
|
|
|
/// 设置服务主机地址
|
|
|
void setServerHost(String address) {
|