NewsApi.java
1.86 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
86
87
88
89
90
91
92
93
94
95
96
package com.studymachine.www.http.api;
import com.hjq.http.config.IRequestApi;
/**
* desc : 常见问题
*/
public final class NewsApi implements IRequestApi {
@Override
public String getApi() {
return "content/news/list";
}
private int pageSize;
private int pageNum;
private String title;
public NewsApi setTitle(String title) {
this.title = title;
return this;
}
public NewsApi setPageSize(int pageSize) {
this.pageSize = pageSize;
return this;
}
public NewsApi setPageNum(int pageNum) {
this.pageNum = pageNum;
return this;
}
public final static class Bean {
private int id;
private String title;
private String content;
private String profile;
private FeatureDTO feature;
private Object image;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getProfile() {
return profile;
}
public void setProfile(String profile) {
this.profile = profile;
}
public FeatureDTO getFeature() {
return feature;
}
public void setFeature(FeatureDTO feature) {
this.feature = feature;
}
public Object getImage() {
return image;
}
public void setImage(Object image) {
this.image = image;
}
public static class FeatureDTO {
}
}
}