Forráskód Böngészése

同步Server最新接口更改

loki.wu 2 éve
szülő
commit
638ea73125

+ 5 - 0
lib/services/connect.dart

@@ -42,5 +42,10 @@ class ConnectService extends JsonRpcClientBase {
 		return rpcRst;
 	}
 
+	Future<bool> setDeviceIsEncryptedShowAsync(SetDeviceIsEncryptedShowRequest request) async {
+		var rpcRst = await call("SetDeviceIsEncryptedShowAsync", request);
+		return rpcRst;
+	}
+
 }
 

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

@@ -154,6 +154,7 @@ class DeviceInfoDTO extends BaseDTO{
 	String? departmentCode;
 	String? shortCode;
 	bool isAutoShared;
+	bool isEncryptedShow;
 	DateTime? lastLoginTime;
 	String? systemVersion;
 	String? cPUModel;
@@ -176,6 +177,7 @@ class DeviceInfoDTO extends BaseDTO{
 		this.departmentCode,
 		this.shortCode,
 		this.isAutoShared = false,
+		this.isEncryptedShow = false,
 		this.lastLoginTime,
 		this.systemVersion,
 		this.cPUModel,
@@ -205,6 +207,7 @@ class DeviceInfoDTO extends BaseDTO{
 			departmentCode: map['DepartmentCode'],
 			shortCode: map['ShortCode'],
 			isAutoShared: map['IsAutoShared'],
+			isEncryptedShow: map['IsEncryptedShow'],
 			lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
 			systemVersion: map['SystemVersion'],
 			cPUModel: map['CPUModel'],
@@ -245,6 +248,7 @@ class DeviceInfoDTO extends BaseDTO{
 		if(shortCode != null)
 			map['ShortCode'] = shortCode;
 		map['IsAutoShared'] = isAutoShared;
+		map['IsEncryptedShow'] = isEncryptedShow;
 		if(lastLoginTime != null)
 			map['LastLoginTime'] = JsonRpcUtils.dateFormat(lastLoginTime!);
 		if(systemVersion != null)
@@ -282,6 +286,7 @@ class CacheDeviceDTO extends DeviceInfoDTO{
 		String? departmentCode,
 		String? shortCode,
 		bool isAutoShared = false,
+		bool isEncryptedShow = false,
 		DateTime? lastLoginTime,
 		String? systemVersion,
 		String? cPUModel,
@@ -305,6 +310,7 @@ class CacheDeviceDTO extends DeviceInfoDTO{
 			departmentCode: departmentCode,
 			shortCode: shortCode,
 			isAutoShared: isAutoShared,
+			isEncryptedShow: isEncryptedShow,
 			lastLoginTime: lastLoginTime,
 			systemVersion: systemVersion,
 			cPUModel: cPUModel,
@@ -333,6 +339,7 @@ class CacheDeviceDTO extends DeviceInfoDTO{
 			departmentCode: map['DepartmentCode'],
 			shortCode: map['ShortCode'],
 			isAutoShared: map['IsAutoShared'],
+			isEncryptedShow: map['IsEncryptedShow'],
 			lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
 			systemVersion: map['SystemVersion'],
 			cPUModel: map['CPUModel'],
@@ -353,4 +360,28 @@ class CacheDeviceDTO extends DeviceInfoDTO{
 	}
 }
 
+class SetDeviceIsEncryptedShowRequest extends TokenRequest{
+	bool isEncryptedShow;
+
+	SetDeviceIsEncryptedShowRequest({
+		this.isEncryptedShow = false,
+		String? token,
+	}) : super(
+			token: token,
+		);
+
+	factory SetDeviceIsEncryptedShowRequest.fromJson(Map<String, dynamic> map) {
+		return SetDeviceIsEncryptedShowRequest( 
+			isEncryptedShow: map['IsEncryptedShow'],
+			token: map['Token'],
+		);
+	}
+
+	Map<String, dynamic> toJson() {
+		final map = super.toJson();
+		map['IsEncryptedShow'] = isEncryptedShow;
+		return map;
+	}
+}
+
 

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

@@ -119,6 +119,7 @@ class DeviceExtendInfoDTO extends DeviceInfoDTO{
 		String? departmentCode,
 		String? shortCode,
 		bool isAutoShared = false,
+		bool isEncryptedShow = false,
 		DateTime? lastLoginTime,
 		String? systemVersion,
 		String? cPUModel,
@@ -142,6 +143,7 @@ class DeviceExtendInfoDTO extends DeviceInfoDTO{
 			departmentCode: departmentCode,
 			shortCode: shortCode,
 			isAutoShared: isAutoShared,
+			isEncryptedShow: isEncryptedShow,
 			lastLoginTime: lastLoginTime,
 			systemVersion: systemVersion,
 			cPUModel: cPUModel,
@@ -174,6 +176,7 @@ class DeviceExtendInfoDTO extends DeviceInfoDTO{
 			departmentCode: map['DepartmentCode'],
 			shortCode: map['ShortCode'],
 			isAutoShared: map['IsAutoShared'],
+			isEncryptedShow: map['IsEncryptedShow'],
 			lastLoginTime: map['LastLoginTime'] != null ? DateTime.parse(map['LastLoginTime']) : null,
 			systemVersion: map['SystemVersion'],
 			cPUModel: map['CPUModel'],

+ 2 - 2
lib/services/report.dart

@@ -94,12 +94,12 @@ class ReportService extends JsonRpcClientBase {
 		return rpcRst;
 	}
 
-	Future<bool> copyPersonalReportTemplateAsync(CopyReportTemplateRequest request) async {
+	Future<String> copyPersonalReportTemplateAsync(CopyReportTemplateRequest request) async {
 		var rpcRst = await call("CopyPersonalReportTemplateAsync", request);
 		return rpcRst;
 	}
 
-	Future<bool> copyOrgReportTemplateAsync(CopyOrgReportTemplateRequest request) async {
+	Future<String> copyOrgReportTemplateAsync(CopyOrgReportTemplateRequest request) async {
 		var rpcRst = await call("CopyOrgReportTemplateAsync", request);
 		return rpcRst;
 	}

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

@@ -245,6 +245,7 @@ class GetUserListRequest extends TokenRequest{
 	String? organizationCode;
 	String? rankCode;
 	String? positionCode;
+	bool exceptSelf;
 
 	GetUserListRequest({
 		this.queryType = GetUserListTypeEnum.FullName,
@@ -253,6 +254,7 @@ class GetUserListRequest extends TokenRequest{
 		this.organizationCode,
 		this.rankCode,
 		this.positionCode,
+		this.exceptSelf = false,
 		String? token,
 	}) : super(
 			token: token,
@@ -266,6 +268,7 @@ class GetUserListRequest extends TokenRequest{
 			organizationCode: map['OrganizationCode'],
 			rankCode: map['RankCode'],
 			positionCode: map['PositionCode'],
+			exceptSelf: map['ExceptSelf'],
 			token: map['Token'],
 		);
 	}
@@ -282,6 +285,7 @@ class GetUserListRequest extends TokenRequest{
 			map['RankCode'] = rankCode;
 		if(positionCode != null)
 			map['PositionCode'] = positionCode;
+		map['ExceptSelf'] = exceptSelf;
 		return map;
 	}
 }