Преглед на файлове

New: folder info data to move folder api

liweihao преди 5 години
родител
ревизия
8db656473c
променени са 1 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 5 3
      src/main/java/com/example/kdan_data_center/datacenter/folder/FolderService.kt

+ 5 - 3
src/main/java/com/example/kdan_data_center/datacenter/folder/FolderService.kt

@@ -102,18 +102,20 @@ interface FolderService {
     ): Observable<FolderInfoData>
 
     @PUT("move")
+    @FormUrlEncoded
     fun moveFolder(
             @Header("Authorization") accessToken: String,
             @Field("parent_id") parentId: Int?,
             @Field("folder_id") folderId: Int
-    )
+    ): Observable<FolderInfoData>
 
     @PUT("move")
+    @FormUrlEncoded
     fun moveFolder(
             @Header("Authorization") accessToken: String,
             @Field("parent_id") parentId: Int?,
-            @Field("folder_id_list") folderIdList: List<Int>
-    )
+            @Field("folder_id_list[]") folderIdList: IntArray
+    ): Observable<FolderInfoData>
 
     @PUT("sync_architecture")
     fun sync(