以前请求删除直接是
@DELETE("offer/{id}/reject")
suspend fun rejectOffer(@Path("id") id: String, @Body body: RequestBody) : BaseResponse<Any>
但是这样是不支持body的,于是学到下面的写法:
@HTTP(method = "DELETE",path = "offer/{id}/reject",hasBody = true)
suspend fun rejectOffer(@Path("id") id: String, @Body body: RequestBody) : BaseResponse<Any>