소스 검색

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