package com.example.ops_android.data.remote.api

import com.example.ops_android.data.remote.ApiResponse
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

data class FileUploadResponse(
    val hash: String? = null,
    val get: String? = null,
    val download: String? = null
)

interface FileApi {

    @Multipart
    @POST("/files/upload/image")
    suspend fun uploadImage(
        @Part("cookie") cookie: RequestBody,
        @Part file: MultipartBody.Part
    ): ApiResponse<FileUploadResponse>
}
