LoginApi.java
778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.studymachine.www.http.api;
import com.hjq.http.config.IRequestApi;
/**
* desc : 用户登录
*/
public final class LoginApi implements IRequestApi {
@Override
public String getApi() {
return "auth/login";
}
/** 手机号 */
private String mobile;
/** 登录密码 */
private String password;
/** 场景 */
private String scene="password_login";
public LoginApi setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public LoginApi setPassword(String password) {
this.password = password;
return this;
}
public final static class Bean {
private String token;
public String getToken() {
return token;
}
}
}