Sfoglia il codice sorgente

Fix: add data column to share link page list data

liweihao 5 anni fa
parent
commit
f49fcec667

+ 11 - 3
src/main/java/com/example/kdan_data_center/datacenter/share/data/ShareLinkPageListData.kt

@@ -68,7 +68,9 @@ data class ShareLinkPageListData(
                     @SerializedName("shareable_detail")
                     val shareableDetail: ShareableDetail,
                     @SerializedName("shareable_exists")
-                    val shareableExists: Boolean
+                    val shareableExists: Boolean,
+                    @SerializedName("file_upload_expire")
+                    val fileUploadExpire: Boolean?
             ) {
                 data class ShareableDetail(
                         @SerializedName("active_status")
@@ -82,7 +84,7 @@ data class ShareLinkPageListData(
                         @SerializedName("full_path")
                         val fullPath: String,
                         @SerializedName("id")
-                        val id: Int,
+                        val id: Int?,
                         @SerializedName("in_share_folder")
                         val inShareFolder: Boolean,
                         @SerializedName("is_deleted")
@@ -98,7 +100,13 @@ data class ShareLinkPageListData(
                         @SerializedName("user_id")
                         val userId: Int,
                         @SerializedName("user_updated_at")
-                        val userUpdatedAt: String
+                        val userUpdatedAt: String,
+                        @SerializedName("category")
+                        val category: String?,
+                        @SerializedName("project_id")
+                        val projectId: String?,
+                        @SerializedName("project_name")
+                        val projectName: String?
                 )
             }