Update room image models and upload params

This commit is contained in:
androidlover5842
2026-01-27 16:24:07 +05:30
parent 30fcc43f42
commit 6e87eb76a1
2 changed files with 9 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package com.android.trisolarispms.data.api
import com.android.trisolarispms.data.api.model.ImageDto
import okhttp3.MultipartBody
import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.Response
import retrofit2.http.GET
@@ -24,7 +25,10 @@ interface RoomImageApi {
suspend fun uploadRoomImage(
@Path("propertyId") propertyId: String,
@Path("roomId") roomId: String,
@Part file: MultipartBody.Part
@Part file: MultipartBody.Part,
@Part("roomSortOrder") roomSortOrder: RequestBody? = null,
@Part("roomTypeSortOrder") roomTypeSortOrder: RequestBody? = null,
@Part("tags") tags: List<RequestBody>? = null
): Response<ImageDto>
@Streaming

View File

@@ -55,9 +55,13 @@ data class ImageDto(
val id: String? = null,
val propertyId: String? = null,
val roomId: String? = null,
val roomTypeCode: String? = null,
val url: String? = null,
val thumbnailUrl: String? = null,
val contentType: String? = null,
val sizeBytes: Long? = null,
val tags: List<String>? = null,
val roomSortOrder: Int? = null,
val roomTypeSortOrder: Int? = null,
val createdAt: String? = null
)