如何修复Retrofit 2中的错误?我发送请求时出错

问题描述 投票:0回答:1

我不明白错误在哪里。我的项目有注册部分。我需要获取电子邮件并将其发送到 AuthService。

This image shows a picture of the error. In this picture is my AuthService This picture is a sample request from Postman

java android kotlin retrofit2
1个回答
0
投票

你可以重写如下:

@GET("/auth/send-email")
fun sendEmail(@Query("email") email: String)
© www.soinside.com 2019 - 2024. All rights reserved.