Retrofit multiple POST params
问题 I'm trying to submit a call to a server that requires 2 sets of information, this is my interface: @POST("/venues/get-by-location") void getByLocation(@Body Coordinates coordinates, @Body MaxDistanceBody maxDistance, Callback<MyCallback> callback); but I receive this error: " Multiple @Body method annotations found." How can I send multiple objects in one Post request? Thanks! 回答1: Maybe this can help: @Multipart @POST("/venues/get-by-location") void getByLocation(@Part("coordinates")