传query
@DELETE("/community/consumer/post/comment")
suspend fun deleteComment (@Query("vin") id: String): Response<Any>
传body
@HTTP(method = "DELETE", path = "/community/consumer/post/comment", hasBody = true)
suspend fun deleteComment (@Body request: DeleteCommentRequest): Response<Any>
本文介绍了一种通过两种不同方式实现删除评论功能的API设计方法:一种是通过查询参数传递评论ID,另一种则是通过请求体发送包含评论ID在内的请求对象。
477

被折叠的 条评论
为什么被折叠?



