RegisterApi.java
1.72 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package com.studymachine.www.http.api;
import com.hjq.http.config.IRequestApi;
/**
* desc : 用户注册
*/
public final class RegisterApi implements IRequestApi {
@Override
public String getApi() {
return "auth/register";
}
/** 手机号 */
private String mobile;
/** 验证码 */
private String code;
/** 密码 */
private String password;
/** 版本 */
private String category;
/** 年级 */
private String grade;
/** 昵称 */
private String nickName;
/** 昵称 性别男(MALE),女(FEMALE)*/
private String gender;
/** 头像 */
private String pictureId;
/** 场景值 */
private String scene="sms_code_register";
public RegisterApi setPictureId(String pictureId) {
this.pictureId = pictureId;
return this;
}
public RegisterApi setGender(String gender) {
this.gender = gender;
return this;
}
public RegisterApi setNickName(String nickName) {
this.nickName = nickName;
return this;
}
public RegisterApi setMobile(String mobile) {
this.mobile = mobile;
return this;
}
public RegisterApi setCode(String code) {
this.code = code;
return this;
}
public RegisterApi setPassword(String password) {
this.password = password;
return this;
}
public RegisterApi setCategory(String category) {
this.category = category;
return this;
}
public RegisterApi setGrade(String grade) {
this.grade = grade;
return this;
}
public final static class Bean {
private String token;
public String getToken() {
return token;
}
}
}