|
@@ -5,6 +5,7 @@ import com.ys.bdtp.adm.mvvm.model.vo.*
|
|
|
import com.ys.bdtp.adm.mvvm.model.vo.request.Account
|
|
|
import com.ys.bdtp.adm.mvvm.model.vo.request.Login
|
|
|
import retrofit2.http.Body
|
|
|
+import retrofit2.http.Headers
|
|
|
import retrofit2.http.POST
|
|
|
|
|
|
/**
|
|
@@ -47,12 +48,19 @@ interface Api {
|
|
|
suspend fun getBuildingsAndFloors(@Body map: Map<String, String>): Model<BuildingsAndFloors>
|
|
|
|
|
|
/**
|
|
|
- * 获取建筑数据
|
|
|
+ * 下载任务数据
|
|
|
*/
|
|
|
@POST("adm/download")
|
|
|
suspend fun getMission(@Body map: Map<String, String>): Model<Mission>
|
|
|
|
|
|
/**
|
|
|
+ * 上传任务数据
|
|
|
+ */
|
|
|
+ @Headers("Content-Encoding: gzip")
|
|
|
+ @POST("adm/upload")
|
|
|
+ suspend fun uploadMission(@Body mission: Mission)
|
|
|
+
|
|
|
+ /**
|
|
|
* 获取关系数据
|
|
|
*/
|
|
|
@POST("adm/downloadObjRel")
|
|
@@ -64,5 +72,17 @@ interface Api {
|
|
|
@POST("adm/hasUpdate")
|
|
|
suspend fun hasUpdate(): Model<Boolean>
|
|
|
|
|
|
+ /**
|
|
|
+ * 文件上传
|
|
|
+ */
|
|
|
+ @POST("adm/uploadFile")
|
|
|
+ suspend fun uploadFile()
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 下载地图
|
|
|
+ */
|
|
|
+ @POST("adm/downloadMap")
|
|
|
+ suspend fun downloadFile()
|
|
|
+
|
|
|
|
|
|
}
|