package com.example.initiateaphonecallapp.data.network

import com.example.initiateaphonecallapp.data.model.CallRecordUploadRequest
import com.example.initiateaphonecallapp.data.model.CallRecordUploadResponse
import com.example.initiateaphonecallapp.data.model.LoginRequest
import com.example.initiateaphonecallapp.data.model.LoginResponse
import com.example.initiateaphonecallapp.data.model.UploadResponse
import okhttp3.MultipartBody
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

interface UploadFile {
    // 上传文件
    @Multipart
    @POST("common/upload")
    suspend fun uploadFile(
        @Part file: MultipartBody.Part
    ): Response<UploadResponse>

    // 上传通话记录 - 根据你的实际接口路径调整
    @POST("app/call-log/add")
    suspend fun uploadCallRecord(
        @Body request: CallRecordUploadRequest
    ): Response<CallRecordUploadResponse>
}