package com.navinfo.volvo.http import okhttp3.MultipartBody import okhttp3.RequestBody import okhttp3.ResponseBody import retrofit2.Call import retrofit2.http.* import java.io.File interface NavinfoVolvoService { @POST("/navi/cardDelivery/insertCardByApp") suspend fun insertCardByApp(@Body insertData: Map):DefaultResponse @POST("/navi/cardDelivery/updateCardByApp") suspend fun updateCardByApp(@Body updateData: Map):DefaultResponse @POST("/navi/cardDelivery/queryCardListByApp") fun queryCardListByApp(@Body queryData: MutableMap) @POST("/img/upload") @Multipart suspend fun uploadAttachment(@Part attachmentFile: MultipartBody.Part):DefaultResponse> @POST("/img/download") suspend fun downLoadAttachment(@Body downloadData: Map):DefaultResponse @Streaming @GET fun downloadFile(@Url url: String): Call }