注释
This commit is contained in:
@@ -12,15 +12,26 @@ import retrofit2.http.PUT
|
|||||||
import retrofit2.http.Query
|
import retrofit2.http.Query
|
||||||
|
|
||||||
interface ApiService {
|
interface ApiService {
|
||||||
|
/**
|
||||||
|
* 获取登录验证码
|
||||||
|
*/
|
||||||
@GET("/resource/sms/code")
|
@GET("/resource/sms/code")
|
||||||
suspend fun getCode(@Query("userName") userName: String): GetCodeBean<String>
|
suspend fun getCode(@Query("userName") userName: String): GetCodeBean<String>
|
||||||
|
/**
|
||||||
|
* app登录方法
|
||||||
|
* @param loginRequest 登录参数 sms验证码登录,password密码登录
|
||||||
|
*
|
||||||
|
*/
|
||||||
@POST("/app/login")
|
@POST("/app/login")
|
||||||
suspend fun login(@Body loginRequest: LoginRequest): GetCodeBean<LoginBean>
|
suspend fun login(@Body loginRequest: LoginRequest): GetCodeBean<LoginBean>
|
||||||
|
/**
|
||||||
|
* app注册
|
||||||
|
*/
|
||||||
@POST("/app/register")
|
@POST("/app/register")
|
||||||
suspend fun register(@Body registerRequest: RegisterRequest): GetCodeBean<Any>
|
suspend fun register(@Body registerRequest: RegisterRequest): GetCodeBean<Any>
|
||||||
|
/**
|
||||||
|
* 忘记密码——修改密码
|
||||||
|
*/
|
||||||
@PUT("/app/forgot")
|
@PUT("/app/forgot")
|
||||||
suspend fun forgotPassword(@Body forgotRequest: ForgotRequest): GetCodeBean<Any>
|
suspend fun forgotPassword(@Body forgotRequest: ForgotRequest): GetCodeBean<Any>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user