guanxinyi 1 жил өмнө
parent
commit
d8e0b75594

+ 7 - 0
lib/services/aIDiagnosis.dart

@@ -23,6 +23,7 @@ class AIDiagnosisService extends JsonRpcClientBase {
 		/// 注册响应实体反序列化处理器
 		FJsonConvert.setDecoder((map) => DiagnosisImageResult.fromJson(map));
 		FJsonConvert.setDecoder((map) => CarotidResultDTO.fromJson(map));
+		FJsonConvert.setDecoder((map) => CreateCarotidSurfaceImagesResult.fromJson(map));
 		FJsonConvert.setDecoder((map) => DiagnosisReportResult.fromJson(map));
 		FJsonConvert.setDecoder((map) => GetDiagnosisConclusionResult.fromJson(map));
 		FJsonConvert.setDecoder((map) => GetDiagnosisEnumItemsResult.fromJson(map));
@@ -56,6 +57,12 @@ class AIDiagnosisService extends JsonRpcClientBase {
 		return result;
 	}
 
+	Future<CreateCarotidSurfaceImagesResult> createCarotidSurfaceImagesAsync(CreateCarotidSurfaceImagesRequest request) async {
+		var rpcRst = await call("CreateCarotidSurfaceImagesAsync", request);
+		var result = CreateCarotidSurfaceImagesResult.fromJson(rpcRst as Map<String, dynamic>);
+		return result;
+	}
+
 	Future<DiagnosisReportResult> diagnosisReportAsync(DiagnosisReportRequest request) async {
 		var rpcRst = await call("DiagnosisReportAsync", request);
 		var result = DiagnosisReportResult.fromJson(rpcRst as Map<String, dynamic>);

+ 42 - 0
lib/services/aIDiagnosis.m.dart

@@ -376,6 +376,48 @@ class GetCarotidResultRequest {
 	}
 }
 
+class CreateCarotidSurfaceImagesResult {
+	List<String >? surfaceImages;
+
+	CreateCarotidSurfaceImagesResult({
+		this.surfaceImages,
+	});
+
+	factory CreateCarotidSurfaceImagesResult.fromJson(Map<String, dynamic> map) {
+		return CreateCarotidSurfaceImagesResult( 
+			surfaceImages: map['SurfaceImages'] != null ? map['SurfaceImages'].cast<String>().toList() : null,
+		);
+	}
+
+	Map<String, dynamic> toJson() {
+		final map = Map<String, dynamic>();
+		if(surfaceImages != null)
+			map['SurfaceImages'] = surfaceImages;
+		return map;
+	}
+}
+
+class CreateCarotidSurfaceImagesRequest {
+	String? surfaceFileUrl;
+
+	CreateCarotidSurfaceImagesRequest({
+		this.surfaceFileUrl,
+	});
+
+	factory CreateCarotidSurfaceImagesRequest.fromJson(Map<String, dynamic> map) {
+		return CreateCarotidSurfaceImagesRequest( 
+			surfaceFileUrl: map['SurfaceFileUrl'],
+		);
+	}
+
+	Map<String, dynamic> toJson() {
+		final map = Map<String, dynamic>();
+		if(surfaceFileUrl != null)
+			map['SurfaceFileUrl'] = surfaceFileUrl;
+		return map;
+	}
+}
+
 class DiagnosisPerImageDTO extends AIDiagnosisPerImageDTO{
 	String? remedicalCode;
 	RemedicalFileDataTypeEnum dataType;

+ 8 - 0
lib/services/authentication.m.dart

@@ -80,6 +80,7 @@ class TokenDTO {
 	int ipValue;
 	bool isOnline;
 	String? installVersion;
+	bool isOldPlatform;
 
 	TokenDTO({
 		this.version = 0,
@@ -95,6 +96,7 @@ class TokenDTO {
 		this.ipValue = 0,
 		this.isOnline = false,
 		this.installVersion,
+		this.isOldPlatform = false,
 	});
 
 	factory TokenDTO.fromJson(Map<String, dynamic> map) {
@@ -112,6 +114,7 @@ class TokenDTO {
 			ipValue: map['IpValue'],
 			isOnline: map['IsOnline'],
 			installVersion: map['InstallVersion'],
+			isOldPlatform: map['IsOldPlatform'],
 		);
 	}
 
@@ -137,6 +140,7 @@ class TokenDTO {
 		map['IsOnline'] = isOnline;
 		if(installVersion != null)
 			map['InstallVersion'] = installVersion;
+		map['IsOldPlatform'] = isOldPlatform;
 		return map;
 	}
 }
@@ -150,6 +154,7 @@ class ApplyTokenRequest {
 	String? loginServer;
 	int ipValue;
 	String? installVersion;
+	bool isOldPlatform;
 
 	ApplyTokenRequest({
 		this.accountType = AccountType.Admin,
@@ -160,6 +165,7 @@ class ApplyTokenRequest {
 		this.loginServer,
 		this.ipValue = 0,
 		this.installVersion,
+		this.isOldPlatform = false,
 	});
 
 	factory ApplyTokenRequest.fromJson(Map<String, dynamic> map) {
@@ -172,6 +178,7 @@ class ApplyTokenRequest {
 			loginServer: map['LoginServer'],
 			ipValue: map['IpValue'],
 			installVersion: map['InstallVersion'],
+			isOldPlatform: map['IsOldPlatform'],
 		);
 	}
 
@@ -189,6 +196,7 @@ class ApplyTokenRequest {
 		map['IpValue'] = ipValue;
 		if(installVersion != null)
 			map['InstallVersion'] = installVersion;
+		map['IsOldPlatform'] = isOldPlatform;
 		return map;
 	}
 }

+ 4 - 0
lib/services/connect.m.dart

@@ -44,6 +44,7 @@ class ConnectRequest {
 	Platform platform;
 	LoginSource loginSource;
 	String? installVersion;
+	bool isOldPlatform;
 
 	ConnectRequest({
 		this.deviceUniqueCode,
@@ -61,6 +62,7 @@ class ConnectRequest {
 		this.platform = Platform.Windows,
 		this.loginSource = LoginSource.PC,
 		this.installVersion,
+		this.isOldPlatform = false,
 	});
 
 	factory ConnectRequest.fromJson(Map<String, dynamic> map) {
@@ -80,6 +82,7 @@ class ConnectRequest {
 			platform: Platform.values.firstWhere((e) => e.index == map['Platform']),
 			loginSource: LoginSource.values.firstWhere((e) => e.index == map['LoginSource']),
 			installVersion: map['InstallVersion'],
+			isOldPlatform: map['IsOldPlatform'],
 		);
 	}
 
@@ -113,6 +116,7 @@ class ConnectRequest {
 		map['LoginSource'] = loginSource.index;
 		if(installVersion != null)
 			map['InstallVersion'] = installVersion;
+		map['IsOldPlatform'] = isOldPlatform;
 		return map;
 	}
 }

+ 5 - 0
lib/services/education.m.dart

@@ -3884,12 +3884,14 @@ class GetUserPagesRequest extends PageRequest{
 	String? keyword;
 	String? queryState;
 	List<String >? excludeUserCodes;
+	String? languageCode;
 
 	GetUserPagesRequest({
 		this.queryType,
 		this.keyword,
 		this.queryState,
 		this.excludeUserCodes,
+		this.languageCode,
 		int pageIndex = 0,
 		int pageSize = 0,
 		String? token,
@@ -3905,6 +3907,7 @@ class GetUserPagesRequest extends PageRequest{
 			keyword: map['Keyword'],
 			queryState: map['QueryState'],
 			excludeUserCodes: map['ExcludeUserCodes'] != null ? map['ExcludeUserCodes'].cast<String>().toList() : null,
+			languageCode: map['LanguageCode'],
 			pageIndex: map['PageIndex'],
 			pageSize: map['PageSize'],
 			token: map['Token'],
@@ -3921,6 +3924,8 @@ class GetUserPagesRequest extends PageRequest{
 			map['QueryState'] = queryState;
 		if(excludeUserCodes != null)
 			map['ExcludeUserCodes'] = excludeUserCodes;
+		if(languageCode != null)
+			map['LanguageCode'] = languageCode;
 		return map;
 	}
 }

+ 15 - 0
lib/services/notification.m.dart

@@ -1022,10 +1022,12 @@ class UpgradeVersionNotification extends NotificationDTO{
 
 class CloseLiveToDeviceNotification extends NotificationDTO{
 	String? liveRoomCode;
+	String? deviceCode;
 
 	CloseLiveToDeviceNotification({
 		NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
 		this.liveRoomCode,
+		this.deviceCode,
 		String? code,
 		bool isResponse = false,
 	}) : super(
@@ -1038,6 +1040,7 @@ class CloseLiveToDeviceNotification extends NotificationDTO{
 		return CloseLiveToDeviceNotification( 
 			notificationType: NotificationTypeEnum.values.firstWhere((e) => e.index == map['NotificationType']),
 			liveRoomCode: map['LiveRoomCode'],
+			deviceCode: map['DeviceCode'],
 			code: map['Code'],
 			isResponse: map['IsResponse'],
 		);
@@ -1047,6 +1050,8 @@ class CloseLiveToDeviceNotification extends NotificationDTO{
 		final map = super.toJson();
 		if(liveRoomCode != null)
 			map['LiveRoomCode'] = liveRoomCode;
+		if(deviceCode != null)
+			map['DeviceCode'] = deviceCode;
 		return map;
 	}
 }
@@ -1313,6 +1318,8 @@ class StartLiveToDeviceNotification extends NotificationDTO{
 	int mergedVideoOutputWidth;
 	int mergedVideoOutputHeight;
 	List<VideoDeviceOutputInfo >? videoDeviceOutputList;
+	String? deviceCode;
+	String? deviceSign;
 
 	StartLiveToDeviceNotification({
 		NotificationTypeEnum notificationType = NotificationTypeEnum.Unknown,
@@ -1324,6 +1331,8 @@ class StartLiveToDeviceNotification extends NotificationDTO{
 		this.mergedVideoOutputWidth = 0,
 		this.mergedVideoOutputHeight = 0,
 		this.videoDeviceOutputList,
+		this.deviceCode,
+		this.deviceSign,
 		String? code,
 		bool isResponse = false,
 	}) : super(
@@ -1343,6 +1352,8 @@ class StartLiveToDeviceNotification extends NotificationDTO{
 			mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
 			mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
 			videoDeviceOutputList: map['VideoDeviceOutputList'] != null ? (map['VideoDeviceOutputList'] as List).map((e)=>VideoDeviceOutputInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
+			deviceCode: map['DeviceCode'],
+			deviceSign: map['DeviceSign'],
 			code: map['Code'],
 			isResponse: map['IsResponse'],
 		);
@@ -1360,6 +1371,10 @@ class StartLiveToDeviceNotification extends NotificationDTO{
 		map['MergedVideoOutputHeight'] = mergedVideoOutputHeight;
 		if(videoDeviceOutputList != null)
 			map['VideoDeviceOutputList'] = videoDeviceOutputList;
+		if(deviceCode != null)
+			map['DeviceCode'] = deviceCode;
+		if(deviceSign != null)
+			map['DeviceSign'] = deviceSign;
 		return map;
 	}
 }

+ 31 - 25
lib/services/other.m.dart

@@ -1790,31 +1790,6 @@ class DeviceLeaveLiveConsultationResult {
 	}
 }
 
-class FindDeviceDiagnosisRequest extends TokenRequest{
-	String? deviceCode;
-
-	FindDeviceDiagnosisRequest({
-		this.deviceCode,
-		String? token,
-	}) : super(
-			token: token,
-		);
-
-	factory FindDeviceDiagnosisRequest.fromJson(Map<String, dynamic> map) {
-		return FindDeviceDiagnosisRequest( 
-			deviceCode: map['DeviceCode'],
-			token: map['Token'],
-		);
-	}
-
-	Map<String, dynamic> toJson() {
-		final map = super.toJson();
-		if(deviceCode != null)
-			map['DeviceCode'] = deviceCode;
-		return map;
-	}
-}
-
 class GetDevicePrinterRequest extends TokenRequest{
 	String? deviceCode;
 	DevicePrinterEnum getPrinterEnum;
@@ -4158,6 +4133,7 @@ class ReportTemplateMigratoryInfo extends ReportTemplateDTO{
 		String? reportDatasJson,
 		List<ReportPreviewDTO >? templatePreviewList,
 		List<String >? templatePreviewUrlList,
+		String? languageCode,
 	}) : super(
 			reportTemplateCode: reportTemplateCode,
 			reportTemplateName: reportTemplateName,
@@ -4173,6 +4149,7 @@ class ReportTemplateMigratoryInfo extends ReportTemplateDTO{
 			reportDatasJson: reportDatasJson,
 			templatePreviewList: templatePreviewList,
 			templatePreviewUrlList: templatePreviewUrlList,
+			languageCode: languageCode,
 		);
 
 	factory ReportTemplateMigratoryInfo.fromJson(Map<String, dynamic> map) {
@@ -4194,6 +4171,7 @@ class ReportTemplateMigratoryInfo extends ReportTemplateDTO{
 			reportDatasJson: map['ReportDatasJson'],
 			templatePreviewList: map['TemplatePreviewList'] != null ? (map['TemplatePreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
 			templatePreviewUrlList: map['TemplatePreviewUrlList'] != null ? map['TemplatePreviewUrlList'].cast<String>().toList() : null,
+			languageCode: map['LanguageCode'],
 		);
 	}
 
@@ -6328,6 +6306,31 @@ class GetRolePagesRequest extends PageRequest{
 	}
 }
 
+class GetRoleSelectListRequest extends TokenRequest{
+	String? languageCode;
+
+	GetRoleSelectListRequest({
+		this.languageCode,
+		String? token,
+	}) : super(
+			token: token,
+		);
+
+	factory GetRoleSelectListRequest.fromJson(Map<String, dynamic> map) {
+		return GetRoleSelectListRequest( 
+			languageCode: map['LanguageCode'],
+			token: map['Token'],
+		);
+	}
+
+	Map<String, dynamic> toJson() {
+		final map = super.toJson();
+		if(languageCode != null)
+			map['LanguageCode'] = languageCode;
+		return map;
+	}
+}
+
 class GetSelectOrganizationPageRequest extends PageRequest{
 	String? keyword;
 
@@ -16654,6 +16657,7 @@ class OnlineTokenDTO extends TokenDTO{
 		int ipValue = 0,
 		bool isOnline = false,
 		String? installVersion,
+		bool isOldPlatform = false,
 	}) : super(
 			version: version,
 			code: code,
@@ -16668,6 +16672,7 @@ class OnlineTokenDTO extends TokenDTO{
 			ipValue: ipValue,
 			isOnline: isOnline,
 			installVersion: installVersion,
+			isOldPlatform: isOldPlatform,
 		);
 
 	factory OnlineTokenDTO.fromJson(Map<String, dynamic> map) {
@@ -16686,6 +16691,7 @@ class OnlineTokenDTO extends TokenDTO{
 			ipValue: map['IpValue'],
 			isOnline: map['IsOnline'],
 			installVersion: map['InstallVersion'],
+			isOldPlatform: map['IsOldPlatform'],
 		);
 	}
 

+ 6 - 0
lib/services/remedical.dart

@@ -328,5 +328,11 @@ class RemedicalService extends JsonRpcClientBase {
 		return rpcRst;
 	}
 
+	Future<DiagnosisOrganEnum> findDeviceDiagnosisAsync(FindDeviceDiagnosisRequest request) async {
+		var rpcRst = await call("FindDeviceDiagnosisAsync", request);
+		var result = DiagnosisOrganEnum.values.firstWhere((e) => e.index == rpcRst);
+		return result;
+	}
+
 }
 

+ 25 - 0
lib/services/remedical.m.dart

@@ -3537,4 +3537,29 @@ class LabFileInfoRequest extends TokenRequest{
 	}
 }
 
+class FindDeviceDiagnosisRequest extends TokenRequest{
+	String? deviceCode;
+
+	FindDeviceDiagnosisRequest({
+		this.deviceCode,
+		String? token,
+	}) : super(
+			token: token,
+		);
+
+	factory FindDeviceDiagnosisRequest.fromJson(Map<String, dynamic> map) {
+		return FindDeviceDiagnosisRequest( 
+			deviceCode: map['DeviceCode'],
+			token: map['Token'],
+		);
+	}
+
+	Map<String, dynamic> toJson() {
+		final map = super.toJson();
+		if(deviceCode != null)
+			map['DeviceCode'] = deviceCode;
+		return map;
+	}
+}
+
 

+ 29 - 0
lib/services/report.m.dart

@@ -36,6 +36,7 @@ class ReportTemplateDTO {
 	String? reportDatasJson;
 	List<ReportPreviewDTO >? templatePreviewList;
 	List<String >? templatePreviewUrlList;
+	String? languageCode;
 
 	ReportTemplateDTO({
 		this.reportTemplateCode,
@@ -52,6 +53,7 @@ class ReportTemplateDTO {
 		this.reportDatasJson,
 		this.templatePreviewList,
 		this.templatePreviewUrlList,
+		this.languageCode,
 	});
 
 	factory ReportTemplateDTO.fromJson(Map<String, dynamic> map) {
@@ -70,6 +72,7 @@ class ReportTemplateDTO {
 			reportDatasJson: map['ReportDatasJson'],
 			templatePreviewList: map['TemplatePreviewList'] != null ? (map['TemplatePreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
 			templatePreviewUrlList: map['TemplatePreviewUrlList'] != null ? map['TemplatePreviewUrlList'].cast<String>().toList() : null,
+			languageCode: map['LanguageCode'],
 		);
 	}
 
@@ -98,6 +101,8 @@ class ReportTemplateDTO {
 			map['TemplatePreviewList'] = templatePreviewList;
 		if(templatePreviewUrlList != null)
 			map['TemplatePreviewUrlList'] = templatePreviewUrlList;
+		if(languageCode != null)
+			map['LanguageCode'] = languageCode;
 		return map;
 	}
 }
@@ -654,10 +659,14 @@ class FindReportTemplatePagesRequest extends PageRequest{
 class AddReportTemplateRequest extends TokenRequest{
 	String? reportTemplateName;
 	String? reportTemplateJson;
+	String? reportDatasJson;
+	ReportTemplateTypeEnum reportTemplateType;
 
 	AddReportTemplateRequest({
 		this.reportTemplateName,
 		this.reportTemplateJson,
+		this.reportDatasJson,
+		this.reportTemplateType = ReportTemplateTypeEnum.Default,
 		String? token,
 	}) : super(
 			token: token,
@@ -667,6 +676,8 @@ class AddReportTemplateRequest extends TokenRequest{
 		return AddReportTemplateRequest( 
 			reportTemplateName: map['ReportTemplateName'],
 			reportTemplateJson: map['ReportTemplateJson'],
+			reportDatasJson: map['ReportDatasJson'],
+			reportTemplateType: ReportTemplateTypeEnum.values.firstWhere((e) => e.index == map['ReportTemplateType']),
 			token: map['Token'],
 		);
 	}
@@ -677,6 +688,9 @@ class AddReportTemplateRequest extends TokenRequest{
 			map['ReportTemplateName'] = reportTemplateName;
 		if(reportTemplateJson != null)
 			map['ReportTemplateJson'] = reportTemplateJson;
+		if(reportDatasJson != null)
+			map['ReportDatasJson'] = reportDatasJson;
+		map['ReportTemplateType'] = reportTemplateType.index;
 		return map;
 	}
 }
@@ -1439,8 +1453,10 @@ class ThesaurusAllDTO {
 }
 
 class GetDefaultThesaurusContentRequest extends TokenRequest{
+	String? languageCode;
 
 	GetDefaultThesaurusContentRequest({
+		this.languageCode,
 		String? token,
 	}) : super(
 			token: token,
@@ -1448,21 +1464,26 @@ class GetDefaultThesaurusContentRequest extends TokenRequest{
 
 	factory GetDefaultThesaurusContentRequest.fromJson(Map<String, dynamic> map) {
 		return GetDefaultThesaurusContentRequest( 
+			languageCode: map['LanguageCode'],
 			token: map['Token'],
 		);
 	}
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		if(languageCode != null)
+			map['LanguageCode'] = languageCode;
 		return map;
 	}
 }
 
 class SetUserDefaultThesaurusRequest extends TokenRequest{
 	String? thesaurusCode;
+	String? languageCode;
 
 	SetUserDefaultThesaurusRequest({
 		this.thesaurusCode,
+		this.languageCode,
 		String? token,
 	}) : super(
 			token: token,
@@ -1471,6 +1492,7 @@ class SetUserDefaultThesaurusRequest extends TokenRequest{
 	factory SetUserDefaultThesaurusRequest.fromJson(Map<String, dynamic> map) {
 		return SetUserDefaultThesaurusRequest( 
 			thesaurusCode: map['ThesaurusCode'],
+			languageCode: map['LanguageCode'],
 			token: map['Token'],
 		);
 	}
@@ -1479,6 +1501,8 @@ class SetUserDefaultThesaurusRequest extends TokenRequest{
 		final map = super.toJson();
 		if(thesaurusCode != null)
 			map['ThesaurusCode'] = thesaurusCode;
+		if(languageCode != null)
+			map['LanguageCode'] = languageCode;
 		return map;
 	}
 }
@@ -1590,9 +1614,11 @@ class GetDefaultReportTemplateContentRequest extends TokenRequest{
 
 class SetUserDefaultReportTemplateRequest extends TokenRequest{
 	String? reportTemplateCode;
+	String? languageCode;
 
 	SetUserDefaultReportTemplateRequest({
 		this.reportTemplateCode,
+		this.languageCode,
 		String? token,
 	}) : super(
 			token: token,
@@ -1601,6 +1627,7 @@ class SetUserDefaultReportTemplateRequest extends TokenRequest{
 	factory SetUserDefaultReportTemplateRequest.fromJson(Map<String, dynamic> map) {
 		return SetUserDefaultReportTemplateRequest( 
 			reportTemplateCode: map['ReportTemplateCode'],
+			languageCode: map['LanguageCode'],
 			token: map['Token'],
 		);
 	}
@@ -1609,6 +1636,8 @@ class SetUserDefaultReportTemplateRequest extends TokenRequest{
 		final map = super.toJson();
 		if(reportTemplateCode != null)
 			map['ReportTemplateCode'] = reportTemplateCode;
+		if(languageCode != null)
+			map['LanguageCode'] = languageCode;
 		return map;
 	}
 }