浏览代码

Fix: hard delete folder api

liweihao 5 年之前
父节点
当前提交
793b55ea6c
共有 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

@@ -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")