【发布时间】:2021-08-27 14:45:43
【问题描述】:
我正在尝试使用 API 调用在我的 Android 应用程序中使用 Retrofit 发布数据。但是我的 UserService 类一直指向我的代码行中的错误。我检查了又检查,似乎无法解决问题。
package com.example.xxxxx;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
public class UserService {
@POST("api/enroll_vehicle")
Call<UserResponse> saveUser(@Body UserRequest userRequest);
}
【问题讨论】:
标签: java android-studio retrofit2