package com.gingersoft.gsa.delivery_pick_mode.data.network.api

import com.gingersoft.gsa.delivery_pick_mode.data.model.bean.MessageBean
import com.gingersoft.gsa.delivery_pick_mode.data.model.bean.DeliveryAddSuccessConfig
import com.gingersoft.gsa.delivery_pick_mode.data.model.bean.DeliveryConfig
import okhttp3.RequestBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.POST

interface DeliveryService {

    @POST("gsa/getDeliveryConfigDTO")
    fun queryDeliveryList(@Body requestBody: RequestBody): Call<DeliveryConfig>

    @POST("gsa/addDeliveryConfig")
    fun addDeliveryList(@Body requestBody: RequestBody): Call<DeliveryAddSuccessConfig>

    @POST("gsa/updateDeliveryConfig")
    fun updateDelivery(@Body requestBody: RequestBody): Call<MessageBean>

}