更新时间:2023-01-01 17:00:43
您只需要将列表本身作为正文发送
You just need to send the list itself as a Body
public interface Interface_CreateClass {
@POST("SetData/CreateClass")
Call<JsonGet_CreateClass> getJSONCreateClass(@Query("username") String username,
@Body List<ClassSchedule> classSchedule);
}
注意:我认为您不能在同一个请求中将两个参数注释为 Body
.
Notice: I think you can't have two parameters annotated as Body
in the same request.