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