Просмотр исходного кода

New: add Muti file info data to restore file api

liweihao 6 лет назад
Родитель
Сommit
2b5b602da0

+ 3 - 3
src/main/java/com/example/kdan_data_center/datacenter/file/FileService.kt

@@ -85,15 +85,15 @@ interface FileService {
             @Header("Authorization") accessToken: String,
             @Field("object_type") objectType: String?,
             @Field("object_id") objectId: Int
-    )
+    ): Observable<MutiFileInfoData>
 
     @PUT("restore")
     @FormUrlEncoded
     fun restoreFile(
             @Header("Authorization") accessToken: String,
             @Field("object_type") objectType: String?,
-            @Field("object_id_list") objectIdList: Array<Int>
-    )
+            @Field("object_id_list[]") objectIdList: IntArray
+    ): Observable<MutiFileInfoData>
 
     @POST("copy")
     @FormUrlEncoded