|
@@ -14,9 +14,6 @@ typedef T ServiceBuilder<T extends JsonRpcClientBase>();
|
|
|
/// 默认地址标识
|
|
|
const String _defaultAddressSign = "FLYINSONO";
|
|
|
|
|
|
-/// 测试
|
|
|
-const String JSON_RPC_CLIENT_VERSION = "1.0.1-rc3";
|
|
|
-
|
|
|
/// JSON-RPC 代理
|
|
|
class JsonRpcProxy {
|
|
|
JsonRpcProxy({
|
|
@@ -52,43 +49,44 @@ class JsonRpcProxy {
|
|
|
return _platformService!;
|
|
|
}
|
|
|
|
|
|
- ClientLogService get clientLog =>
|
|
|
- findService(() => new ClientLogService(currentHostAddress));
|
|
|
+ ClientLogService get clientLog =>
|
|
|
+ findService(() => new ClientLogService(currentHostAddress));
|
|
|
+
|
|
|
+ DepartmentService get department =>
|
|
|
+ findService(() => new DepartmentService(currentHostAddress));
|
|
|
|
|
|
- DepartmentService get department =>
|
|
|
- findService(() => new DepartmentService(currentHostAddress));
|
|
|
+ DeviceService get device =>
|
|
|
+ findService(() => new DeviceService(currentHostAddress));
|
|
|
|
|
|
- DeviceService get device =>
|
|
|
- findService(() => new DeviceService(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));
|
|
|
+ ManagementService get management =>
|
|
|
+ findService(() => new ManagementService(currentHostAddress));
|
|
|
|
|
|
- ManagementService get management =>
|
|
|
- findService(() => new ManagementService(currentHostAddress));
|
|
|
+ OrganizationService get organization =>
|
|
|
+ findService(() => new OrganizationService(currentHostAddress));
|
|
|
|
|
|
- OrganizationService get organization =>
|
|
|
- findService(() => new OrganizationService(currentHostAddress));
|
|
|
+ RankService get rank =>
|
|
|
+ findService(() => new RankService(currentHostAddress));
|
|
|
|
|
|
- RankService get rank =>
|
|
|
- findService(() => new RankService(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));
|
|
|
+ RoleService get role =>
|
|
|
+ findService(() => new RoleService(currentHostAddress));
|
|
|
|
|
|
- RoleService get role =>
|
|
|
- findService(() => new RoleService(currentHostAddress));
|
|
|
+ UserService get user =>
|
|
|
+ findService(() => new UserService(currentHostAddress));
|
|
|
|
|
|
- UserService get user =>
|
|
|
- findService(() => new UserService(currentHostAddress));
|
|
|
|
|
|
- /* 服务代理设置 End */
|
|
|
+ /* 服务代理设置 End */
|
|
|
|
|
|
/// 设置服务主机地址
|
|
|
void setServerHost(String address) {
|
|
@@ -110,3 +108,4 @@ class JsonRpcProxy {
|
|
|
return _serviceCache[serviceType] as T;
|
|
|
}
|
|
|
}
|
|
|
+
|