Sfoglia il codice sorgente

Fix: hard delete folder api

liweihao 5 anni fa
parent
commit
793b55ea6c

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

@@ -57,16 +57,18 @@ interface FolderService {
             @Field("folder_id_list[]") folderIdList: IntArray
     ): Observable<DeleteFolderData>
 
-    @DELETE("hard_destroy")
+    @HTTP(method = "DELETE", path = "hard_destroy", hasBody = true)
+    @FormUrlEncoded
     fun hardDeleteFolder(
             @Header("Authorization") accessToken: String,
             @Field("folder_id") folderId: Int
     ): Observable<DeleteFolderData>
 
-    @DELETE("hard_destroy")
+    @HTTP(method = "DELETE", path = "hard_destroy", hasBody = true)
+    @FormUrlEncoded
     fun hardDeleteFolder(
             @Header("Authorization") accessToken: String,
-            @Field("folder_id_list") folderIdList: List<Int>
+            @Field("folder_id_list[]") folderIdList: IntArray
     ): Observable<DeleteFolderData>
 
     @PUT("restore")