Browse Source

同步Server最新接口更改

loki.wu 2 years ago
parent
commit
cd43c89e86

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

@@ -251,10 +251,12 @@ class DiagnosisImageResult {
 
 class DiagnosisImageRequest extends TokenRequest{
 	String? fileToken;
+	String? diskPath;
 	String? relationCode;
 
 	DiagnosisImageRequest({
 		this.fileToken,
+		this.diskPath,
 		this.relationCode,
 		String? token,
 	}) : super(
@@ -264,6 +266,7 @@ class DiagnosisImageRequest extends TokenRequest{
 	factory DiagnosisImageRequest.fromJson(Map<String, dynamic> map) {
 		return DiagnosisImageRequest( 
 			fileToken: map['FileToken'],
+			diskPath: map['DiskPath'],
 			relationCode: map['RelationCode'],
 			token: map['Token'],
 		);
@@ -273,6 +276,8 @@ class DiagnosisImageRequest extends TokenRequest{
 		final map = super.toJson();
 		if(fileToken != null)
 			map['FileToken'] = fileToken;
+		if(diskPath != null)
+			map['DiskPath'] = diskPath;
 		if(relationCode != null)
 			map['RelationCode'] = relationCode;
 		return map;

+ 1 - 1
lib/services/authentication.m.dart

@@ -2211,7 +2211,7 @@ enum CustomerRpcCode {
 	UniqueIdIsEmpty,
 	DeviceShareDataError,
 	DeviceShareExpired,
-	placeHolder_2032,
+	UserHaveNoOrg,
 	placeHolder_2033,
 	placeHolder_2034,
 	placeHolder_2035,

+ 7 - 0
lib/services/lab.dart

@@ -25,6 +25,7 @@ class LabService extends JsonRpcClientBase {
 		FJsonConvert.setDecoder((map) => LabFolderDTO.fromJson(map));
 		FJsonConvert.setDecoder((map) => PageResult<RemedicalInfoDTO>.fromJson(map));
 		FJsonConvert.setDecoder((map) => RemedicalInfoDTO.fromJson(map));
+		FJsonConvert.setDecoder((map) => DownloadLabFileTemplateResult.fromJson(map));
 	}
 
 	Future<RecordLaboratoryFileResult> recordLaboratoryFile(RecordLaboratoryFileRequest request) async {
@@ -45,5 +46,11 @@ class LabService extends JsonRpcClientBase {
 		return result;
 	}
 
+	Future<DownloadLabFileTemplateResult> downloadLabFileTemplateAsync(DownloadLabFileTemplateRequest request) async {
+		var rpcRst = await call("DownloadLabFileTemplateAsync", request);
+		var result = DownloadLabFileTemplateResult.fromJson(rpcRst as Map<String, dynamic>);
+		return result;
+	}
+
 }
 

+ 41 - 0
lib/services/lab.m.dart

@@ -169,4 +169,45 @@ class GetFileListByFolderRequest extends PageRequest{
 	}
 }
 
+class DownloadLabFileTemplateResult {
+	String? templateFileUrl;
+
+	DownloadLabFileTemplateResult({
+		this.templateFileUrl,
+	});
+
+	factory DownloadLabFileTemplateResult.fromJson(Map<String, dynamic> map) {
+		return DownloadLabFileTemplateResult( 
+			templateFileUrl: map['TemplateFileUrl'],
+		);
+	}
+
+	Map<String, dynamic> toJson() {
+		final map = Map<String, dynamic>();
+		if(templateFileUrl != null)
+			map['TemplateFileUrl'] = templateFileUrl;
+		return map;
+	}
+}
+
+class DownloadLabFileTemplateRequest extends TokenRequest{
+
+	DownloadLabFileTemplateRequest({
+		String? token,
+	}) : super(
+			token: token,
+		);
+
+	factory DownloadLabFileTemplateRequest.fromJson(Map<String, dynamic> map) {
+		return DownloadLabFileTemplateRequest( 
+			token: map['Token'],
+		);
+	}
+
+	Map<String, dynamic> toJson() {
+		final map = super.toJson();
+		return map;
+	}
+}
+
 

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

@@ -4250,6 +4250,7 @@ class UserDTO extends UserBaseDTO{
 	String? language;
 	bool enableReportLabel;
 	List<AssociatedInfoDTO >? associatedInfos;
+	String? commonPlatformUserId;
 	String? bindEmergencyDeviceCode;
 
 	UserDTO({
@@ -4283,6 +4284,7 @@ class UserDTO extends UserBaseDTO{
 		this.language,
 		this.enableReportLabel = false,
 		this.associatedInfos,
+		this.commonPlatformUserId,
 		this.bindEmergencyDeviceCode,
 		String? userCode,
 		String? userName,
@@ -4329,6 +4331,7 @@ class UserDTO extends UserBaseDTO{
 			language: map['Language'],
 			enableReportLabel: map['EnableReportLabel'],
 			associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
+			commonPlatformUserId: map['CommonPlatformUserId'],
 			bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
 			userCode: map['UserCode'],
 			userName: map['UserName'],
@@ -4394,6 +4397,8 @@ class UserDTO extends UserBaseDTO{
 		map['EnableReportLabel'] = enableReportLabel;
 		if(associatedInfos != null)
 			map['AssociatedInfos'] = associatedInfos;
+		if(commonPlatformUserId != null)
+			map['CommonPlatformUserId'] = commonPlatformUserId;
 		if(bindEmergencyDeviceCode != null)
 			map['BindEmergencyDeviceCode'] = bindEmergencyDeviceCode;
 		return map;
@@ -4437,6 +4442,7 @@ class UserExtendDTO extends UserDTO{
 		String? language,
 		bool enableReportLabel = false,
 		List<AssociatedInfoDTO >? associatedInfos,
+		String? commonPlatformUserId,
 		String? bindEmergencyDeviceCode,
 		String? userCode,
 		String? userName,
@@ -4474,6 +4480,7 @@ class UserExtendDTO extends UserDTO{
 			language: language,
 			enableReportLabel: enableReportLabel,
 			associatedInfos: associatedInfos,
+			commonPlatformUserId: commonPlatformUserId,
 			bindEmergencyDeviceCode: bindEmergencyDeviceCode,
 			userCode: userCode,
 			userName: userName,
@@ -4516,6 +4523,7 @@ class UserExtendDTO extends UserDTO{
 			language: map['Language'],
 			enableReportLabel: map['EnableReportLabel'],
 			associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
+			commonPlatformUserId: map['CommonPlatformUserId'],
 			bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
 			userCode: map['UserCode'],
 			userName: map['UserName'],

+ 9 - 0
lib/services/other.m.dart

@@ -1840,6 +1840,7 @@ class SignUpRequest extends UserDTO{
 		String? language,
 		bool enableReportLabel = false,
 		List<AssociatedInfoDTO >? associatedInfos,
+		String? commonPlatformUserId,
 		String? bindEmergencyDeviceCode,
 		String? userCode,
 		String? userName,
@@ -1877,6 +1878,7 @@ class SignUpRequest extends UserDTO{
 			language: language,
 			enableReportLabel: enableReportLabel,
 			associatedInfos: associatedInfos,
+			commonPlatformUserId: commonPlatformUserId,
 			bindEmergencyDeviceCode: bindEmergencyDeviceCode,
 			userCode: userCode,
 			userName: userName,
@@ -1917,6 +1919,7 @@ class SignUpRequest extends UserDTO{
 			language: map['Language'],
 			enableReportLabel: map['EnableReportLabel'],
 			associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
+			commonPlatformUserId: map['CommonPlatformUserId'],
 			bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
 			userCode: map['UserCode'],
 			userName: map['UserName'],
@@ -6243,6 +6246,7 @@ class ManageUserInfoDTO extends UserDTO{
 		String? language,
 		bool enableReportLabel = false,
 		List<AssociatedInfoDTO >? associatedInfos,
+		String? commonPlatformUserId,
 		String? bindEmergencyDeviceCode,
 		String? userCode,
 		String? userName,
@@ -6280,6 +6284,7 @@ class ManageUserInfoDTO extends UserDTO{
 			language: language,
 			enableReportLabel: enableReportLabel,
 			associatedInfos: associatedInfos,
+			commonPlatformUserId: commonPlatformUserId,
 			bindEmergencyDeviceCode: bindEmergencyDeviceCode,
 			userCode: userCode,
 			userName: userName,
@@ -6329,6 +6334,7 @@ class ManageUserInfoDTO extends UserDTO{
 			language: map['Language'],
 			enableReportLabel: map['EnableReportLabel'],
 			associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
+			commonPlatformUserId: map['CommonPlatformUserId'],
 			bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
 			userCode: map['UserCode'],
 			userName: map['UserName'],
@@ -6405,6 +6411,7 @@ class ModifyUserRequest extends ManageUserInfoDTO{
 		String? language,
 		bool enableReportLabel = false,
 		List<AssociatedInfoDTO >? associatedInfos,
+		String? commonPlatformUserId,
 		String? bindEmergencyDeviceCode,
 		String? userCode,
 		String? userName,
@@ -6451,6 +6458,7 @@ class ModifyUserRequest extends ManageUserInfoDTO{
 			language: language,
 			enableReportLabel: enableReportLabel,
 			associatedInfos: associatedInfos,
+			commonPlatformUserId: commonPlatformUserId,
 			bindEmergencyDeviceCode: bindEmergencyDeviceCode,
 			userCode: userCode,
 			userName: userName,
@@ -6501,6 +6509,7 @@ class ModifyUserRequest extends ManageUserInfoDTO{
 			language: map['Language'],
 			enableReportLabel: map['EnableReportLabel'],
 			associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
+			commonPlatformUserId: map['CommonPlatformUserId'],
 			bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
 			userCode: map['UserCode'],
 			userName: map['UserName'],

+ 3 - 0
lib/services/user.m.dart

@@ -406,6 +406,7 @@ class UserInfoByCodeDTO extends UserDTO{
 		String? language,
 		bool enableReportLabel = false,
 		List<AssociatedInfoDTO >? associatedInfos,
+		String? commonPlatformUserId,
 		String? bindEmergencyDeviceCode,
 		String? userCode,
 		String? userName,
@@ -443,6 +444,7 @@ class UserInfoByCodeDTO extends UserDTO{
 			language: language,
 			enableReportLabel: enableReportLabel,
 			associatedInfos: associatedInfos,
+			commonPlatformUserId: commonPlatformUserId,
 			bindEmergencyDeviceCode: bindEmergencyDeviceCode,
 			userCode: userCode,
 			userName: userName,
@@ -485,6 +487,7 @@ class UserInfoByCodeDTO extends UserDTO{
 			language: map['Language'],
 			enableReportLabel: map['EnableReportLabel'],
 			associatedInfos: map['AssociatedInfos'] != null ? (map['AssociatedInfos'] as List).map((e)=>AssociatedInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
+			commonPlatformUserId: map['CommonPlatformUserId'],
 			bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
 			userCode: map['UserCode'],
 			userName: map['UserName'],