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

Fix: change update folder body and data other info to hash map type

liweihao преди 6 години
родител
ревизия
dbb932ab19

+ 1 - 5
src/main/java/com/example/kdan_data_center/datacenter/folder/body/UpdateFolderBody.kt

@@ -6,9 +6,5 @@ data class UpdateFolderBody(
 ) {
     val parent_id: Int? = null
     val folder_name: String? = null
-    val other_infos: OtherInfos? = null
-
-    data class OtherInfos(
-            val color: String
-    )
+    val other_infos: HashMap<String, String>? = null
 }

+ 2 - 7
src/main/java/com/example/kdan_data_center/datacenter/folder/data/UpdateFolderData.kt

@@ -18,14 +18,9 @@ data class UpdateFolderData(
             @SerializedName("updated_at") val updatedAt: String,
             @SerializedName("full_path") val fullPath: String,
             @SerializedName("active_status") val activeStatus: String,
-            @SerializedName("other_infos") val otherInfos: OtherInfos,
+            @SerializedName("other_infos") val otherInfos: HashMap<String, String?>,
             @SerializedName("folder_type") val folderType: String,
             @SerializedName("parent_id") val parentId: Int,
             @SerializedName("size") val size: Int
-    ) {
-
-        data class OtherInfos(
-                @SerializedName("color") val color: String
-        )
-    }
+    )
 }