Browse Source

更新接口

loki.wu 1 year ago
parent
commit
8e1b26ece8

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

@@ -1659,6 +1659,7 @@ class UserGroupDTO extends BaseUserGroupDTO{
 	int examCount;
 	int studentCount;
 	bool isAgent;
+	bool isOldPlatformData;
 
 	UserGroupDTO({
 		this.maxPeople = 0,
@@ -1670,6 +1671,7 @@ class UserGroupDTO extends BaseUserGroupDTO{
 		this.examCount = 0,
 		this.studentCount = 0,
 		this.isAgent = false,
+		this.isOldPlatformData = false,
 		String? code,
 		String? name,
 		String? shortCode,
@@ -1694,6 +1696,7 @@ class UserGroupDTO extends BaseUserGroupDTO{
 			examCount: map['ExamCount'],
 			studentCount: map['StudentCount'],
 			isAgent: map['IsAgent'],
+			isOldPlatformData: map['IsOldPlatformData'],
 			code: map['Code'],
 			name: map['Name'],
 			shortCode: map['ShortCode'],
@@ -1716,6 +1719,7 @@ class UserGroupDTO extends BaseUserGroupDTO{
 		map['ExamCount'] = examCount;
 		map['StudentCount'] = studentCount;
 		map['IsAgent'] = isAgent;
+		map['IsOldPlatformData'] = isOldPlatformData;
 		return map;
 	}
 }
@@ -1723,10 +1727,12 @@ class UserGroupDTO extends BaseUserGroupDTO{
 class QueryUserGroupPageRequest extends PageRequest{
 	String? keyword;
 	String? teacherCode;
+	bool? isOldPlatformData;
 
 	QueryUserGroupPageRequest({
 		this.keyword,
 		this.teacherCode,
+		this.isOldPlatformData,
 		int pageIndex = 0,
 		int pageSize = 0,
 		String? token,
@@ -1740,6 +1746,7 @@ class QueryUserGroupPageRequest extends PageRequest{
 		return QueryUserGroupPageRequest( 
 			keyword: map['Keyword'],
 			teacherCode: map['TeacherCode'],
+			isOldPlatformData: map['IsOldPlatformData'],
 			pageIndex: map['PageIndex'],
 			pageSize: map['PageSize'],
 			token: map['Token'],
@@ -1752,6 +1759,8 @@ class QueryUserGroupPageRequest extends PageRequest{
 			map['Keyword'] = keyword;
 		if(teacherCode != null)
 			map['TeacherCode'] = teacherCode;
+		if(isOldPlatformData != null)
+			map['IsOldPlatformData'] = isOldPlatformData;
 		return map;
 	}
 }
@@ -3940,6 +3949,7 @@ class GetUserPagesRequest extends PageRequest{
 	List<String>? excludeUserCodes;
 	String? languageCode;
 	List<String>? roleCodes;
+	bool? isAgent;
 
 	GetUserPagesRequest({
 		this.queryType,
@@ -3948,6 +3958,7 @@ class GetUserPagesRequest extends PageRequest{
 		this.excludeUserCodes,
 		this.languageCode,
 		this.roleCodes,
+		this.isAgent,
 		int pageIndex = 0,
 		int pageSize = 0,
 		String? token,
@@ -3965,6 +3976,7 @@ class GetUserPagesRequest extends PageRequest{
 			excludeUserCodes: map['ExcludeUserCodes']?.cast<String>().toList(),
 			languageCode: map['LanguageCode'],
 			roleCodes: map['RoleCodes']?.cast<String>().toList(),
+			isAgent: map['IsAgent'],
 			pageIndex: map['PageIndex'],
 			pageSize: map['PageSize'],
 			token: map['Token'],
@@ -3985,6 +3997,8 @@ class GetUserPagesRequest extends PageRequest{
 			map['LanguageCode'] = languageCode;
 		if(roleCodes != null)
 			map['RoleCodes'] = roleCodes;
+		if(isAgent != null)
+			map['IsAgent'] = isAgent;
 		return map;
 	}
 }

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

@@ -4522,6 +4522,7 @@ class UserDTO extends UserBaseDTO{
 	List<String>? dashboardOrgCodes;
 	String? organizationShortCode;
 	String? rootOrganizationShortCode;
+	bool isOldAgent;
 
 	UserDTO({
 		this.nickName,
@@ -4561,6 +4562,7 @@ class UserDTO extends UserBaseDTO{
 		this.dashboardOrgCodes,
 		this.organizationShortCode,
 		this.rootOrganizationShortCode,
+		this.isOldAgent = false,
 		String? phone,
 		String? email,
 		String? userCode,
@@ -4621,6 +4623,7 @@ class UserDTO extends UserBaseDTO{
 			dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
 			organizationShortCode: map['OrganizationShortCode'],
 			rootOrganizationShortCode: map['RootOrganizationShortCode'],
+			isOldAgent: map['IsOldAgent'],
 			phone: map['Phone'],
 			email: map['Email'],
 			userCode: map['UserCode'],
@@ -4703,6 +4706,7 @@ class UserDTO extends UserBaseDTO{
 			map['OrganizationShortCode'] = organizationShortCode;
 		if(rootOrganizationShortCode != null)
 			map['RootOrganizationShortCode'] = rootOrganizationShortCode;
+		map['IsOldAgent'] = isOldAgent;
 		return map;
 	}
 }
@@ -4751,6 +4755,7 @@ class UserExtendDTO extends UserDTO{
 		List<String>? dashboardOrgCodes,
 		String? organizationShortCode,
 		String? rootOrganizationShortCode,
+		bool isOldAgent = false,
 		String? phone,
 		String? email,
 		String? userCode,
@@ -4798,6 +4803,7 @@ class UserExtendDTO extends UserDTO{
 			dashboardOrgCodes: dashboardOrgCodes,
 			organizationShortCode: organizationShortCode,
 			rootOrganizationShortCode: rootOrganizationShortCode,
+			isOldAgent: isOldAgent,
 			phone: phone,
 			email: email,
 			userCode: userCode,
@@ -4850,6 +4856,7 @@ class UserExtendDTO extends UserDTO{
 			dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
 			organizationShortCode: map['OrganizationShortCode'],
 			rootOrganizationShortCode: map['RootOrganizationShortCode'],
+			isOldAgent: map['IsOldAgent'],
 			phone: map['Phone'],
 			email: map['Email'],
 			userCode: map['UserCode'],

+ 10 - 0
lib/services/login.m.dart

@@ -565,9 +565,16 @@ class GetAssociatedAccountInfoResult {
 	}
 }
 
+enum AssociateTypeEnum {
+	FeedbackSystem,
+	AgentAssessmentSystem,
+}
+
 class GetAssociatedAccountInfoRequest extends TokenRequest{
+	AssociateTypeEnum? associateType;
 
 	GetAssociatedAccountInfoRequest({
+		this.associateType,
 		String? token,
 	}) : super(
 			token: token,
@@ -575,12 +582,15 @@ class GetAssociatedAccountInfoRequest extends TokenRequest{
 
 	factory GetAssociatedAccountInfoRequest.fromJson(Map<String, dynamic> map) {
 		return GetAssociatedAccountInfoRequest( 
+			associateType: map['AssociateType'] != null ? AssociateTypeEnum.values.firstWhere((e) => e.index == map['AssociateType']) : null,
 			token: map['Token'],
 		);
 	}
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		if(associateType != null)
+			map['AssociateType'] = associateType;
 		return map;
 	}
 }

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

@@ -446,20 +446,24 @@ class CMSTemplateResult {
 
 class ConfigRecordResult {
 	bool isOpenASR;
+	bool isDistributed;
 
 	ConfigRecordResult({
 		this.isOpenASR = false,
+		this.isDistributed = false,
 	});
 
 	factory ConfigRecordResult.fromJson(Map<String, dynamic> map) {
 		return ConfigRecordResult( 
 			isOpenASR: map['IsOpenASR'],
+			isDistributed: map['IsDistributed'],
 		);
 	}
 
 	Map<String, dynamic> toJson() {
 		final map = Map<String, dynamic>();
 		map['IsOpenASR'] = isOpenASR;
+		map['IsDistributed'] = isDistributed;
 		return map;
 	}
 }
@@ -2286,6 +2290,7 @@ class SignUpRequest extends UserDTO{
 		List<String>? dashboardOrgCodes,
 		String? organizationShortCode,
 		String? rootOrganizationShortCode,
+		bool isOldAgent = false,
 		String? phone,
 		String? email,
 		String? userCode,
@@ -2333,6 +2338,7 @@ class SignUpRequest extends UserDTO{
 			dashboardOrgCodes: dashboardOrgCodes,
 			organizationShortCode: organizationShortCode,
 			rootOrganizationShortCode: rootOrganizationShortCode,
+			isOldAgent: isOldAgent,
 			phone: phone,
 			email: email,
 			userCode: userCode,
@@ -2383,6 +2389,7 @@ class SignUpRequest extends UserDTO{
 			dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
 			organizationShortCode: map['OrganizationShortCode'],
 			rootOrganizationShortCode: map['RootOrganizationShortCode'],
+			isOldAgent: map['IsOldAgent'],
 			phone: map['Phone'],
 			email: map['Email'],
 			userCode: map['UserCode'],
@@ -4694,6 +4701,7 @@ class UserGroupMigratoryInfo extends BaseDTO{
 	List<StudentInfoDTO>? students;
 	String? shortCode;
 	bool isAgent;
+	bool isOldPlatformData;
 
 	UserGroupMigratoryInfo({
 		this.isDelete = false,
@@ -4704,6 +4712,7 @@ class UserGroupMigratoryInfo extends BaseDTO{
 		this.students,
 		this.shortCode,
 		this.isAgent = false,
+		this.isOldPlatformData = false,
 		DateTime? createTime,
 		DateTime? updateTime,
 	}) : super(
@@ -4721,6 +4730,7 @@ class UserGroupMigratoryInfo extends BaseDTO{
 			students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
 			shortCode: map['ShortCode'],
 			isAgent: map['IsAgent'],
+			isOldPlatformData: map['IsOldPlatformData'],
 			createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
 			updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
 		);
@@ -4741,6 +4751,7 @@ class UserGroupMigratoryInfo extends BaseDTO{
 		if(shortCode != null)
 			map['ShortCode'] = shortCode;
 		map['IsAgent'] = isAgent;
+		map['IsOldPlatformData'] = isOldPlatformData;
 		return map;
 	}
 }
@@ -8887,6 +8898,7 @@ class ManageUserInfoDTO extends UserDTO{
 		List<String>? dashboardOrgCodes,
 		String? organizationShortCode,
 		String? rootOrganizationShortCode,
+		bool isOldAgent = false,
 		String? phone,
 		String? email,
 		String? userCode,
@@ -8934,6 +8946,7 @@ class ManageUserInfoDTO extends UserDTO{
 			dashboardOrgCodes: dashboardOrgCodes,
 			organizationShortCode: organizationShortCode,
 			rootOrganizationShortCode: rootOrganizationShortCode,
+			isOldAgent: isOldAgent,
 			phone: phone,
 			email: email,
 			userCode: userCode,
@@ -8992,6 +9005,7 @@ class ManageUserInfoDTO extends UserDTO{
 			dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
 			organizationShortCode: map['OrganizationShortCode'],
 			rootOrganizationShortCode: map['RootOrganizationShortCode'],
+			isOldAgent: map['IsOldAgent'],
 			phone: map['Phone'],
 			email: map['Email'],
 			userCode: map['UserCode'],
@@ -9075,6 +9089,7 @@ class ModifyUserRequest extends ManageUserInfoDTO{
 		List<String>? dashboardOrgCodes,
 		String? organizationShortCode,
 		String? rootOrganizationShortCode,
+		bool isOldAgent = false,
 		String? phone,
 		String? email,
 		String? userCode,
@@ -9130,6 +9145,7 @@ class ModifyUserRequest extends ManageUserInfoDTO{
 			dashboardOrgCodes: dashboardOrgCodes,
 			organizationShortCode: organizationShortCode,
 			rootOrganizationShortCode: rootOrganizationShortCode,
+			isOldAgent: isOldAgent,
 			phone: phone,
 			email: email,
 			userCode: userCode,
@@ -9189,6 +9205,7 @@ class ModifyUserRequest extends ManageUserInfoDTO{
 			dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
 			organizationShortCode: map['OrganizationShortCode'],
 			rootOrganizationShortCode: map['RootOrganizationShortCode'],
+			isOldAgent: map['IsOldAgent'],
 			phone: map['Phone'],
 			email: map['Email'],
 			userCode: map['UserCode'],
@@ -12807,6 +12824,7 @@ class UserPasswordDTO extends BaseDTO{
 	bool enableReportLabel;
 	String? bindEmergencyDeviceCode;
 	String? bindEmergencyExpertCode;
+	bool isOldAgent;
 
 	UserPasswordDTO({
 		this.userCode,
@@ -12841,6 +12859,7 @@ class UserPasswordDTO extends BaseDTO{
 		this.enableReportLabel = false,
 		this.bindEmergencyDeviceCode,
 		this.bindEmergencyExpertCode,
+		this.isOldAgent = false,
 		DateTime? createTime,
 		DateTime? updateTime,
 	}) : super(
@@ -12882,6 +12901,7 @@ class UserPasswordDTO extends BaseDTO{
 			enableReportLabel: map['EnableReportLabel'],
 			bindEmergencyDeviceCode: map['BindEmergencyDeviceCode'],
 			bindEmergencyExpertCode: map['BindEmergencyExpertCode'],
+			isOldAgent: map['IsOldAgent'],
 			createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
 			updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
 		);
@@ -12948,6 +12968,7 @@ class UserPasswordDTO extends BaseDTO{
 			map['BindEmergencyDeviceCode'] = bindEmergencyDeviceCode;
 		if(bindEmergencyExpertCode != null)
 			map['BindEmergencyExpertCode'] = bindEmergencyExpertCode;
+		map['IsOldAgent'] = isOldAgent;
 		return map;
 	}
 }

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

@@ -580,6 +580,7 @@ class SimpleRecordInfoDTO extends BaseDTO{
 	String? customDoctor;
 	String? customOrganzation;
 	String? equipmentSN;
+	List<DiagnosisInfoDTO>? diagnosisInfos;
 
 	SimpleRecordInfoDTO({
 		this.recordCode,
@@ -601,6 +602,7 @@ class SimpleRecordInfoDTO extends BaseDTO{
 		this.customDoctor,
 		this.customOrganzation,
 		this.equipmentSN,
+		this.diagnosisInfos,
 		DateTime? createTime,
 		DateTime? updateTime,
 	}) : super(
@@ -629,6 +631,7 @@ class SimpleRecordInfoDTO extends BaseDTO{
 			customDoctor: map['CustomDoctor'],
 			customOrganzation: map['CustomOrganzation'],
 			equipmentSN: map['EquipmentSN'],
+			diagnosisInfos: map['DiagnosisInfos'] != null ? (map['DiagnosisInfos'] as List).map((e)=>DiagnosisInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
 			createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
 			updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
 		);
@@ -669,6 +672,8 @@ class SimpleRecordInfoDTO extends BaseDTO{
 			map['CustomOrganzation'] = customOrganzation;
 		if(equipmentSN != null)
 			map['EquipmentSN'] = equipmentSN;
+		if(diagnosisInfos != null)
+			map['DiagnosisInfos'] = diagnosisInfos;
 		return map;
 	}
 }

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

@@ -1731,14 +1731,17 @@ class SetUserDefaultReportTemplateRequest extends TokenRequest{
 
 class GetReportTemplateDBRequest {
 	String? reportTemplateCode;
+	String? languageCode;
 
 	GetReportTemplateDBRequest({
 		this.reportTemplateCode,
+		this.languageCode,
 	});
 
 	factory GetReportTemplateDBRequest.fromJson(Map<String, dynamic> map) {
 		return GetReportTemplateDBRequest( 
 			reportTemplateCode: map['ReportTemplateCode'],
+			languageCode: map['LanguageCode'],
 		);
 	}
 
@@ -1747,6 +1750,9 @@ class GetReportTemplateDBRequest {
 		if(reportTemplateCode != null) {
 			map['ReportTemplateCode'] = reportTemplateCode;
 		}
+		if(languageCode != null) {
+			map['LanguageCode'] = languageCode;
+		}
 		return map;
 	}
 }

+ 6 - 0
lib/services/role.dart

@@ -40,5 +40,11 @@ class RoleService extends JsonRpcClientBase {
 		return result;
 	}
 
+	Future<List<RoleDTO>> findAllRolesAsync(FindAuthenticationRolesRequest request) async {
+		var rpcRst = await call("FindAllRolesAsync", request);
+		var result = (rpcRst as List).map((e)=>RoleDTO.fromJson(e as Map<String, dynamic>)).toList();
+		return result;
+	}
+
 }
 

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

@@ -98,6 +98,7 @@ class GetUserPageRequest extends PageRequest{
 	bool exceptSelf;
 	String? language;
 	List<String>? roleCodes;
+	bool? isAgent;
 
 	GetUserPageRequest({
 		this.keyword,
@@ -108,6 +109,7 @@ class GetUserPageRequest extends PageRequest{
 		this.exceptSelf = false,
 		this.language,
 		this.roleCodes,
+		this.isAgent,
 		int pageIndex = 0,
 		int pageSize = 0,
 		String? token,
@@ -127,6 +129,7 @@ class GetUserPageRequest extends PageRequest{
 			exceptSelf: map['ExceptSelf'],
 			language: map['Language'],
 			roleCodes: map['RoleCodes']?.cast<String>().toList(),
+			isAgent: map['IsAgent'],
 			pageIndex: map['PageIndex'],
 			pageSize: map['PageSize'],
 			token: map['Token'],
@@ -149,6 +152,8 @@ class GetUserPageRequest extends PageRequest{
 			map['Language'] = language;
 		if(roleCodes != null)
 			map['RoleCodes'] = roleCodes;
+		if(isAgent != null)
+			map['IsAgent'] = isAgent;
 		return map;
 	}
 }
@@ -440,6 +445,7 @@ class UserInfoByCodeDTO extends UserDTO{
 		List<String>? dashboardOrgCodes,
 		String? organizationShortCode,
 		String? rootOrganizationShortCode,
+		bool isOldAgent = false,
 		String? phone,
 		String? email,
 		String? userCode,
@@ -487,6 +493,7 @@ class UserInfoByCodeDTO extends UserDTO{
 			dashboardOrgCodes: dashboardOrgCodes,
 			organizationShortCode: organizationShortCode,
 			rootOrganizationShortCode: rootOrganizationShortCode,
+			isOldAgent: isOldAgent,
 			phone: phone,
 			email: email,
 			userCode: userCode,
@@ -539,6 +546,7 @@ class UserInfoByCodeDTO extends UserDTO{
 			dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
 			organizationShortCode: map['OrganizationShortCode'],
 			rootOrganizationShortCode: map['RootOrganizationShortCode'],
+			isOldAgent: map['IsOldAgent'],
 			phone: map['Phone'],
 			email: map['Email'],
 			userCode: map['UserCode'],
@@ -1152,6 +1160,7 @@ class UserMigratoryInfo extends UserDTO{
 		List<String>? dashboardOrgCodes,
 		String? organizationShortCode,
 		String? rootOrganizationShortCode,
+		bool isOldAgent = false,
 		String? phone,
 		String? email,
 		String? userCode,
@@ -1199,6 +1208,7 @@ class UserMigratoryInfo extends UserDTO{
 			dashboardOrgCodes: dashboardOrgCodes,
 			organizationShortCode: organizationShortCode,
 			rootOrganizationShortCode: rootOrganizationShortCode,
+			isOldAgent: isOldAgent,
 			phone: phone,
 			email: email,
 			userCode: userCode,
@@ -1254,6 +1264,7 @@ class UserMigratoryInfo extends UserDTO{
 			dashboardOrgCodes: map['DashboardOrgCodes']?.cast<String>().toList(),
 			organizationShortCode: map['OrganizationShortCode'],
 			rootOrganizationShortCode: map['RootOrganizationShortCode'],
+			isOldAgent: map['IsOldAgent'],
 			phone: map['Phone'],
 			email: map['Email'],
 			userCode: map['UserCode'],