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

import com.gingersoft.gsa.other_order_mode.data.model.bean.DeliveryAddSuccessConfig
import com.gingersoft.gsa.other_order_mode.data.model.bean.DeliveryConfig
import com.gingersoft.gsa.other_order_mode.data.model.bean.MessageBean
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>

}