PhoneApi.java
764 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
package com.studymachine.www.http.api;
import com.hjq.http.config.IRequestApi;
/**
* desc : 修改手机
*/
public final class PhoneApi implements IRequestApi {
@Override
public String getApi() {
return "user/phone";
}
/** 旧手机号验证码(没有绑定情况下可不传) */
private String preCode;
/** 新手机号 */
private String phone;
/** 新手机号验证码 */
private String code;
public PhoneApi setPreCode(String preCode) {
this.preCode = preCode;
return this;
}
public PhoneApi setPhone(String phone) {
this.phone = phone;
return this;
}
public PhoneApi setCode(String code) {
this.code = code;
return this;
}
}