retrofit2 DELETE使用

/**
 *删除购物车条目
 */
@HTTP(method = "DELETE", path = "cart/deletes", hasBody = true)
suspend fun deleteShopCart(
    @Body mShopCartDeleteParams: MutableList<ShopCartDeleteParams>
): DataResponse<Boolean>

推荐阅读更多精彩内容