|
@@ -196,7 +196,11 @@ class AdmRepository(
|
|
|
return db.objectDao().getObjectByCode(code, buildingId)
|
|
|
}
|
|
|
|
|
|
- suspend fun getObjectByCode(code: String, buildingId: String, floorId: String): List<ObjectEntity> {
|
|
|
+ suspend fun getObjectByCode(
|
|
|
+ code: String,
|
|
|
+ buildingId: String,
|
|
|
+ floorId: String
|
|
|
+ ): List<ObjectEntity> {
|
|
|
return db.objectDao().getObjectByCode(code, buildingId, floorId)
|
|
|
}
|
|
|
|
|
@@ -605,8 +609,11 @@ class AdmRepository(
|
|
|
/**
|
|
|
* 获取文件信息
|
|
|
*/
|
|
|
- suspend fun getFileUploadInfo(file: FileInfo): Model<FileUploadInfo> {
|
|
|
- return api.getFileUploadInfo(file = file)
|
|
|
+ suspend fun getFileUploadInfo(
|
|
|
+ param: Map<String, String>,
|
|
|
+ file: FileInfo
|
|
|
+ ): Model<FileUploadInfo> {
|
|
|
+ return api.getFileUploadInfo(param = param, file = file)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -619,8 +626,11 @@ class AdmRepository(
|
|
|
/**
|
|
|
* 获取文件下载信息
|
|
|
*/
|
|
|
- suspend fun getFileDownloadInfo(fileId: String): Model<FileDownloadInfo> {
|
|
|
- return api.getFileDownloadInfo(fileId = fileId)
|
|
|
+ suspend fun getFileDownloadInfo(
|
|
|
+ param: Map<String, String>,
|
|
|
+ fileId: String
|
|
|
+ ): Model<FileDownloadInfo> {
|
|
|
+ return api.getFileDownloadInfo(param = param, fileId = fileId)
|
|
|
}
|
|
|
|
|
|
/**
|