package com.example.initiateaphonecallapp.data.network

import com.example.initiateaphonecallapp.data.model.ApiLoginSmsResponse
import com.example.initiateaphonecallapp.data.model.ApiResponse
import com.example.initiateaphonecallapp.data.model.ApigetInfoResponse
import com.example.initiateaphonecallapp.data.model.GetCodeRequest
import com.example.initiateaphonecallapp.data.model.LoginRequest
import com.example.initiateaphonecallapp.data.model.LoginResponse
import com.example.initiateaphonecallapp.data.model.LoginSmsRequest
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

// data/network/LoginApiService.kt
interface LoginApiService {
    @POST("app/login")
    suspend fun login(@Body loginRequest: LoginRequest): Response<LoginResponse>

    @GET("getInfo")
    suspend fun getInfo(): Response<ApigetInfoResponse>

    @POST("getCode")
    suspend fun getCode(@Body request: GetCodeRequest): Response<ApiResponse<Boolean>>

    @POST("app/login-sms")
    suspend fun loginSms(@Body request: LoginSmsRequest): Response<LoginResponse>
}