RequestApi.java
9.28 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
/*
* Copyright (c) Wondertek Technologies Co., Ltd. 2019-2022. All rights reserved.
*/
package com.wd.common.api;
import com.wd.capability.network.response.BaseResponse;
import com.wd.foundation.bean.comment.DisplayWorkInfoBean;
import com.wd.foundation.bean.custom.comp.CompBean;
import com.wd.foundation.bean.custom.comp.GroupBean;
import com.wd.foundation.bean.custom.comp.PageBean;
import com.wd.foundation.bean.live.RoomDataBean;
import com.wd.foundation.bean.paper.PaperBean;
import com.wd.foundation.bean.paper.PaperNumInforListBean;
import com.wd.foundation.bean.response.AreaTreeselectBean;
import com.wd.foundation.bean.response.BottomNavBean;
import com.wd.foundation.bean.response.ContentPageListBean;
import com.wd.foundation.bean.response.FollowBean;
import com.wd.foundation.bean.response.FollowListIndexBean;
import com.wd.foundation.bean.response.FollowWorksBean;
import com.wd.foundation.bean.response.LiveStatusBean;
import com.wd.foundation.bean.response.MasterFollowsStatusBean;
import com.wd.foundation.bean.response.PageTopNavBean;
import com.wd.foundation.bean.response.PersonalInfoBean;
import com.wd.foundation.bean.response.VideoItemBean;
import java.util.List;
import java.util.Map;
import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
/**
* 请求的接口
*
* @author shishuagnxi
*/
public interface RequestApi {
/**
* 底部导航栏列表接口,底部导航栏
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup")
Observable<BaseResponse<BottomNavBean>> getBottomNavGroup();
/**
* 根据底部导航栏id获取导航栏信息,头部频道
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup/detail")
Observable<BaseResponse<PageTopNavBean>> getTopNavDetail(@QueryMap Map<String, Object> map);
/**
* 根据底部导航栏id获取导航栏信息V1.0--除默认启动时间线频道第一页情况外使用
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/pageInfo")
Observable<BaseResponse<PageBean>> getPageData(@QueryMap Map<String, Object> map);
/**
* 根据底部导航栏id获取导航栏信息V1.0---热点频道第一页数据使用该接口,pageInfo合并了compInfo数据
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/pageInfo/v2")
Observable<BaseResponse<PageBean>> getPageDataV2(@QueryMap Map<String, Object> map);
/**
* 根据楼层Id获取组件节目信息V1.0,【推荐频道】
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/rec/compInfo")
Observable<BaseResponse<GroupBean>> getRecGroupData(@QueryMap Map<String, Object> map);
/**
* 根据楼层Id获取组件节目信息V1.0
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/compInfo")
Observable<BaseResponse<GroupBean>> getGroupData(@QueryMap Map<String, Object> map);
/**
* 一级沉浸式视频推荐
* 4.2 视频分页列表
*/
@GET("prod-api/content/content/list")
Observable<BaseResponse<List<VideoItemBean>>> getImmersiveRecommend(@QueryMap Map<String, Object> map);
/**
* 一级二级 批量查询视频详情
* ids number []
* 点播播放详情批量查询
*/
@POST("prod-api/content/content/detail")
Observable<BaseResponse<List<VideoItemBean>>> getBatchShortPlayDetail(@Body RequestBody body);
/**
* 一级二级 查询单个视频详情
*/
@GET("prod-api/content/content/{id}")
Observable<BaseResponse<VideoItemBean>> getShortPlayDetail(@Query("Id") String Id);
/**
* 二级 推荐数据列表
*/
@GET("prod-api/content/content/current/list")
Observable<BaseResponse<List<VideoItemBean>>> getRecommendList(@QueryMap Map<String, Object> map);
/**
* 获取指定日期电子报版面信息
*
* @return
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/paperApi/paperTime")
Observable<BaseResponse<List<PaperNumInforListBean>>> paperTime(@QueryMap Map<String, Object> map);
/**
* 获取电子报版面数据
*
* @return
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/paperApi/paperList")
Observable<BaseResponse<PaperBean>> paperList(@QueryMap Map<String, Object> map);
/**
* 获取电子报版面数据-查询最近一期电子报的首个版面信息
*
* @return
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/paperApi/firstPaper")
Observable<BaseResponse<PaperBean>> firstPaperList(@QueryMap Map<String, Object> map);
/**
* 一键读报
*
* @return
*/
@GET("api/rmrb-bff-display-zh/content/zh/c/newsPaper/read")
Observable<BaseResponse<ContentPageListBean>> oneKeyRead(@QueryMap Map<String, Object> map);
/**
* 获取已发布默认词
*/
@GET("api/rmrb-search-api/zh/c/hints")
Observable<BaseResponse<List<String>>> getSearchHints();
/**
* 兴趣标签卡选择标签
* @param body
* @return
*/
@POST("api/rmrb-user-center/user/zh/c/tag/updateUserTagWord")
Observable<BaseResponse<Object>> updateUserTagWord(@Body RequestBody body);
/**
* 直播内容回顾、预约组件-更多(预约列表)
*
* @return
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/channel/live/reviewList")
Observable<BaseResponse<ContentPageListBean>> queryLiveChannelReviewList(@QueryMap Map<String, Object> map);
/**
* 直播月度排行列表
*
* @return
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/channel/live/browseList")
Observable<BaseResponse<ContentPageListBean>> queryLiveChannelBrowseList(@QueryMap Map<String, Object> map);
/**
* 直播频道直播列表
*
* @return
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/channel/live/list")
Observable<BaseResponse<ContentPageListBean>> queryLiveChannelList(@QueryMap Map<String, Object> map);
/**
* 批查直播状态
*
* @param liveIds
* @return
*/
@GET("api/rmrb-bff-content/b/zh/content/c/liveRoom/batch/liveStatus")
Observable<BaseResponse<List<LiveStatusBean>>> getLiveStatus(@Query("liveIds") String liveIds);
/**
* 获取行政区
*/
@Headers({"urlname:https://restapi.amap.com/"})
@GET("v3/config/district")
Observable<ResponseBody> getDistrictData(@QueryMap Map<String, Object> map);
/**
* 中文端的
*/
@GET("api/rmrb-content-center/c/service/sys-area/treeselect")
Observable<BaseResponse<List<AreaTreeselectBean>>> getAreaReveal(@Query("md5") String md5);
/**
* 获取二级地理信息
* @return
*/
@GET("api/rmrb-content-center/zh/c/sys-area/treeList")
Observable<BaseResponse<List<AreaTreeselectBean>>> getTreeList();
/**
* (关注/取消关注)
*/
@POST("api/rmrb-interact/interact/zh/c/attention/operation")
Observable<BaseResponse<Object>> postFocusUser(@Body RequestBody body);
/**
* 一键关注接口
*/
@POST("api/rmrb-interact/interact/zh/c/attention/batch")
Observable<BaseResponse<Object>> batchAttention(@Body RequestBody body);
/**
* 批量查询创作者的关注状态
*
* @param map
* @return
*/
@POST("api/rmrb-interact/interact/zh/c/batchAttention/status")
Observable<BaseResponse<List<MasterFollowsStatusBean>>> getBatchAttentionStatus(@Body RequestBody map);
/**
* 我的关注列表查询
* @param map
*/
@GET("api/rmrb-interact/interact/zh/c/attention/list")
Observable<BaseResponse<FollowListIndexBean>> getAttentionList(@QueryMap Map<String, Object> map);
/**
* 客态查看别人的关注列表
* @param map
* @return
*/
@GET("api/rmrb-interact/interact/zh/c/userAttention/list")
Observable<BaseResponse<FollowListIndexBean>> getUserAttentionList(@QueryMap Map<String, Object> map);
/**
* 人民号关注页面 --人民号号主推荐
*
* @return
*/
@POST("api/rmrb-bff-display-zh/recommend/zh/c/rmh")
Observable<BaseResponse<List<FollowBean>>> recommendMaterList(@Body RequestBody map);
/**
* 我关注的创作者发布的内容列表查询
*
* @return
*/
@POST("api/rmrb-bff-display-zh/content/zh/c/attention/contentList")
Observable<BaseResponse<FollowWorksBean>> contentList(@Body RequestBody map);
/**
* 批量查询当前内容——用户点赞、收藏状态
*/
@POST("api/rmrb-interact/interact/zh/c/batchLikeAndCollect/status")
Observable<BaseResponse<List<DisplayWorkInfoBean>>> batchLikeAndCollectStatus(@Body RequestBody body);
/**
* C端批量查询直播信息
*/
@GET("api/live-center-message/zh/a/live/room/number/batch/all")
Observable<BaseResponse<List<RoomDataBean>>> getRoomBatchData(@QueryMap Map<String, Object> map);
/**
* 批量查询创作者信息
*/
@POST("api/rmrb-contact/contact/zh/c/master/detailList")
Observable<BaseResponse<List<PersonalInfoBean>>> getMasterInfoListData(@Body() RequestBody body);
/**
* 本地问政卡刷新接口
*/
@GET("api/rmrb-bff-display-zh/display/zh/c/compInfo/localAsk")
Observable<BaseResponse<CompBean>> localAsk(@QueryMap Map<String, Object> map);
}