Browse Source

跟新引用

loki.wu 1 year ago
parent
commit
ecb1918d2c

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

@@ -3263,7 +3263,7 @@ enum CustomerRpcCode {
 	ConfigTypeKeyIsEmpty,
 	ConfigCodeIsEmpty,
 	DeviceTypeUsedForDevice,
-	placeHolder_3069,
+	ExistsUsersNotBelongsToTheNewOrganization,
 	placeHolder_3070,
 	placeHolder_3071,
 	placeHolder_3072,

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

@@ -915,6 +915,7 @@ enum UploadFileTypeEnum {
 	PPT,
 	PPTX,
 	M4V,
+	FVID,
 }
 
 class VideoInfoDTO {

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

@@ -671,6 +671,7 @@ enum QueryConsultationStatusEnum {
 	InProgress,
 	PendingReport,
 	End,
+	Expired,
 }
 
 enum ConsultationQueryTypeEnum {

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

@@ -1200,6 +1200,7 @@ enum TransactionStatusEnum {
 	Tencent,
 	TRTC,
 	VRTC,
+	Expired,
 }
 
 class LiveData {
@@ -1828,6 +1829,7 @@ class LiveCourseMember {
 	int mergedVideoOutputWidth;
 	int mergedVideoOutputHeight;
 	TransactionStatusEnum liveProtocol;
+	bool backgroundRole;
 
 	LiveCourseMember({
 		this.id,
@@ -1850,6 +1852,7 @@ class LiveCourseMember {
 		this.mergedVideoOutputWidth = 0,
 		this.mergedVideoOutputHeight = 0,
 		this.liveProtocol = TransactionStatusEnum.Applied,
+		this.backgroundRole = false,
 	});
 
 	factory LiveCourseMember.fromJson(Map<String, dynamic> map) {
@@ -1874,6 +1877,7 @@ class LiveCourseMember {
 			mergedVideoOutputWidth: map['MergedVideoOutputWidth'],
 			mergedVideoOutputHeight: map['MergedVideoOutputHeight'],
 			liveProtocol: TransactionStatusEnum.values.firstWhere((e) => e.index == map['LiveProtocol']),
+			backgroundRole: map['BackgroundRole'],
 		);
 	}
 
@@ -1905,6 +1909,7 @@ class LiveCourseMember {
 		map['MergedVideoOutputWidth'] = mergedVideoOutputWidth;
 		map['MergedVideoOutputHeight'] = mergedVideoOutputHeight;
 		map['LiveProtocol'] = liveProtocol.index;
+		map['BackgroundRole'] = backgroundRole;
 		return map;
 	}
 }

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

@@ -2992,9 +2992,11 @@ class AdminMigratoryInfo extends AdminInfoDTO{
 }
 
 class BatchInsertAdminRequest extends TokenRequest{
+	SyncDBEnum syncType;
 	List<AdminMigratoryInfo >? adminMigratorys;
 
 	BatchInsertAdminRequest({
+		this.syncType = SyncDBEnum.Migrate,
 		this.adminMigratorys,
 		String? token,
 	}) : super(
@@ -3003,6 +3005,7 @@ class BatchInsertAdminRequest extends TokenRequest{
 
 	factory BatchInsertAdminRequest.fromJson(Map<String, dynamic> map) {
 		return BatchInsertAdminRequest( 
+			syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
 			adminMigratorys: map['AdminMigratorys'] != null ? (map['AdminMigratorys'] as List).map((e)=>AdminMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			token: map['Token'],
 		);
@@ -3010,6 +3013,7 @@ class BatchInsertAdminRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		map['SyncType'] = syncType.index;
 		if(adminMigratorys != null)
 			map['AdminMigratorys'] = adminMigratorys;
 		return map;
@@ -3062,9 +3066,11 @@ class CourseLabelMigratoryInfo extends BaseDTO{
 }
 
 class BatchInsertCourseLabelRequest extends TokenRequest{
+	SyncDBEnum syncType;
 	List<CourseLabelMigratoryInfo >? courseLabelMigratorys;
 
 	BatchInsertCourseLabelRequest({
+		this.syncType = SyncDBEnum.Migrate,
 		this.courseLabelMigratorys,
 		String? token,
 	}) : super(
@@ -3073,6 +3079,7 @@ class BatchInsertCourseLabelRequest extends TokenRequest{
 
 	factory BatchInsertCourseLabelRequest.fromJson(Map<String, dynamic> map) {
 		return BatchInsertCourseLabelRequest( 
+			syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
 			courseLabelMigratorys: map['CourseLabelMigratorys'] != null ? (map['CourseLabelMigratorys'] as List).map((e)=>CourseLabelMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			token: map['Token'],
 		);
@@ -3080,6 +3087,7 @@ class BatchInsertCourseLabelRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		map['SyncType'] = syncType.index;
 		if(courseLabelMigratorys != null)
 			map['CourseLabelMigratorys'] = courseLabelMigratorys;
 		return map;
@@ -3602,12 +3610,14 @@ class ExamMigratoryInfo extends ExaminationPaperDTO{
 }
 
 class BatchInsertCourseRequest extends TokenRequest{
+	SyncDBEnum syncType;
 	List<CourseMigratoryInfo >? courseMigratorys;
 	List<VideoMigratoryInfo >? videoMigratorys;
 	List<ExamMigratoryInfo >? examMigratorys;
 	List<RemoteExaminationDTO >? remoteExaminationMigratorys;
 
 	BatchInsertCourseRequest({
+		this.syncType = SyncDBEnum.Migrate,
 		this.courseMigratorys,
 		this.videoMigratorys,
 		this.examMigratorys,
@@ -3619,6 +3629,7 @@ class BatchInsertCourseRequest extends TokenRequest{
 
 	factory BatchInsertCourseRequest.fromJson(Map<String, dynamic> map) {
 		return BatchInsertCourseRequest( 
+			syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
 			courseMigratorys: map['CourseMigratorys'] != null ? (map['CourseMigratorys'] as List).map((e)=>CourseMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			videoMigratorys: map['VideoMigratorys'] != null ? (map['VideoMigratorys'] as List).map((e)=>VideoMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			examMigratorys: map['ExamMigratorys'] != null ? (map['ExamMigratorys'] as List).map((e)=>ExamMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
@@ -3629,6 +3640,7 @@ class BatchInsertCourseRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		map['SyncType'] = syncType.index;
 		if(courseMigratorys != null)
 			map['CourseMigratorys'] = courseMigratorys;
 		if(videoMigratorys != null)
@@ -3762,9 +3774,11 @@ class DeviceMigratoryInfo extends DeviceInfoDTO{
 }
 
 class BatchInsertDeviceRequest extends TokenRequest{
+	SyncDBEnum syncType;
 	List<DeviceMigratoryInfo >? deviceMigratorys;
 
 	BatchInsertDeviceRequest({
+		this.syncType = SyncDBEnum.Migrate,
 		this.deviceMigratorys,
 		String? token,
 	}) : super(
@@ -3773,6 +3787,7 @@ class BatchInsertDeviceRequest extends TokenRequest{
 
 	factory BatchInsertDeviceRequest.fromJson(Map<String, dynamic> map) {
 		return BatchInsertDeviceRequest( 
+			syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
 			deviceMigratorys: map['DeviceMigratorys'] != null ? (map['DeviceMigratorys'] as List).map((e)=>DeviceMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			token: map['Token'],
 		);
@@ -3780,6 +3795,7 @@ class BatchInsertDeviceRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		map['SyncType'] = syncType.index;
 		if(deviceMigratorys != null)
 			map['DeviceMigratorys'] = deviceMigratorys;
 		return map;
@@ -3918,9 +3934,11 @@ class OrganizationMigratoryInfo extends OrganizationDTO{
 }
 
 class BatchInsertOrganizationRequest extends TokenRequest{
+	SyncDBEnum syncType;
 	List<OrganizationMigratoryInfo >? organizationMigratorys;
 
 	BatchInsertOrganizationRequest({
+		this.syncType = SyncDBEnum.Migrate,
 		this.organizationMigratorys,
 		String? token,
 	}) : super(
@@ -3929,6 +3947,7 @@ class BatchInsertOrganizationRequest extends TokenRequest{
 
 	factory BatchInsertOrganizationRequest.fromJson(Map<String, dynamic> map) {
 		return BatchInsertOrganizationRequest( 
+			syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
 			organizationMigratorys: map['OrganizationMigratorys'] != null ? (map['OrganizationMigratorys'] as List).map((e)=>OrganizationMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			token: map['Token'],
 		);
@@ -3936,6 +3955,7 @@ class BatchInsertOrganizationRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		map['SyncType'] = syncType.index;
 		if(organizationMigratorys != null)
 			map['OrganizationMigratorys'] = organizationMigratorys;
 		return map;
@@ -4077,9 +4097,11 @@ class PosterConfigMigratoryInfo {
 }
 
 class BatchInsertPosterConfigRequest extends TokenRequest{
+	SyncDBEnum syncType;
 	List<PosterConfigMigratoryInfo >? posterConfigMigratorys;
 
 	BatchInsertPosterConfigRequest({
+		this.syncType = SyncDBEnum.Migrate,
 		this.posterConfigMigratorys,
 		String? token,
 	}) : super(
@@ -4088,6 +4110,7 @@ class BatchInsertPosterConfigRequest extends TokenRequest{
 
 	factory BatchInsertPosterConfigRequest.fromJson(Map<String, dynamic> map) {
 		return BatchInsertPosterConfigRequest( 
+			syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
 			posterConfigMigratorys: map['PosterConfigMigratorys'] != null ? (map['PosterConfigMigratorys'] as List).map((e)=>PosterConfigMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			token: map['Token'],
 		);
@@ -4095,6 +4118,7 @@ class BatchInsertPosterConfigRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		map['SyncType'] = syncType.index;
 		if(posterConfigMigratorys != null)
 			map['PosterConfigMigratorys'] = posterConfigMigratorys;
 		return map;
@@ -4175,9 +4199,11 @@ class ReportTemplateMigratoryInfo extends ReportTemplateDTO{
 }
 
 class BatchInsertReportTemplateRequest extends TokenRequest{
+	SyncDBEnum syncType;
 	List<ReportTemplateMigratoryInfo >? reportTemplateMigratorys;
 
 	BatchInsertReportTemplateRequest({
+		this.syncType = SyncDBEnum.Migrate,
 		this.reportTemplateMigratorys,
 		String? token,
 	}) : super(
@@ -4186,6 +4212,7 @@ class BatchInsertReportTemplateRequest extends TokenRequest{
 
 	factory BatchInsertReportTemplateRequest.fromJson(Map<String, dynamic> map) {
 		return BatchInsertReportTemplateRequest( 
+			syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
 			reportTemplateMigratorys: map['ReportTemplateMigratorys'] != null ? (map['ReportTemplateMigratorys'] as List).map((e)=>ReportTemplateMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			token: map['Token'],
 		);
@@ -4193,6 +4220,7 @@ class BatchInsertReportTemplateRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		map['SyncType'] = syncType.index;
 		if(reportTemplateMigratorys != null)
 			map['ReportTemplateMigratorys'] = reportTemplateMigratorys;
 		return map;
@@ -4242,9 +4270,11 @@ class ReportLabelMigratoryInfo extends ReportLabelDTO{
 }
 
 class BatchInsertReportLabelRequest extends TokenRequest{
+	SyncDBEnum syncType;
 	List<ReportLabelMigratoryInfo >? reportLabelData;
 
 	BatchInsertReportLabelRequest({
+		this.syncType = SyncDBEnum.Migrate,
 		this.reportLabelData,
 		String? token,
 	}) : super(
@@ -4253,6 +4283,7 @@ class BatchInsertReportLabelRequest extends TokenRequest{
 
 	factory BatchInsertReportLabelRequest.fromJson(Map<String, dynamic> map) {
 		return BatchInsertReportLabelRequest( 
+			syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
 			reportLabelData: map['ReportLabelData'] != null ? (map['ReportLabelData'] as List).map((e)=>ReportLabelMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			token: map['Token'],
 		);
@@ -4260,6 +4291,7 @@ class BatchInsertReportLabelRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		map['SyncType'] = syncType.index;
 		if(reportLabelData != null)
 			map['ReportLabelData'] = reportLabelData;
 		return map;
@@ -4327,9 +4359,11 @@ class UserGroupMigratoryInfo extends BaseDTO{
 }
 
 class BatchInsertUserGroupRequest extends TokenRequest{
+	SyncDBEnum syncType;
 	List<UserGroupMigratoryInfo >? userGroupMigratorys;
 
 	BatchInsertUserGroupRequest({
+		this.syncType = SyncDBEnum.Migrate,
 		this.userGroupMigratorys,
 		String? token,
 	}) : super(
@@ -4338,6 +4372,7 @@ class BatchInsertUserGroupRequest extends TokenRequest{
 
 	factory BatchInsertUserGroupRequest.fromJson(Map<String, dynamic> map) {
 		return BatchInsertUserGroupRequest( 
+			syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
 			userGroupMigratorys: map['UserGroupMigratorys'] != null ? (map['UserGroupMigratorys'] as List).map((e)=>UserGroupMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			token: map['Token'],
 		);
@@ -4345,6 +4380,7 @@ class BatchInsertUserGroupRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		map['SyncType'] = syncType.index;
 		if(userGroupMigratorys != null)
 			map['UserGroupMigratorys'] = userGroupMigratorys;
 		return map;

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

@@ -1157,9 +1157,11 @@ class UserMigratoryInfo extends UserDTO{
 }
 
 class BatchInsertUserRequest extends TokenRequest{
+	SyncDBEnum syncType;
 	List<UserMigratoryInfo >? userMigratorys;
 
 	BatchInsertUserRequest({
+		this.syncType = SyncDBEnum.Migrate,
 		this.userMigratorys,
 		String? token,
 	}) : super(
@@ -1168,6 +1170,7 @@ class BatchInsertUserRequest extends TokenRequest{
 
 	factory BatchInsertUserRequest.fromJson(Map<String, dynamic> map) {
 		return BatchInsertUserRequest( 
+			syncType: SyncDBEnum.values.firstWhere((e) => e.index == map['SyncType']),
 			userMigratorys: map['UserMigratorys'] != null ? (map['UserMigratorys'] as List).map((e)=>UserMigratoryInfo.fromJson(e as Map<String,dynamic>)).toList() : null,
 			token: map['Token'],
 		);
@@ -1175,6 +1178,7 @@ class BatchInsertUserRequest extends TokenRequest{
 
 	Map<String, dynamic> toJson() {
 		final map = super.toJson();
+		map['SyncType'] = syncType.index;
 		if(userMigratorys != null)
 			map['UserMigratorys'] = userMigratorys;
 		return map;