|
|
@@ -9,6 +9,7 @@ import java.util.Map;
|
|
|
import retrofit2.Call;
|
|
|
import retrofit2.http.Body;
|
|
|
import retrofit2.http.DELETE;
|
|
|
+import retrofit2.http.Field;
|
|
|
import retrofit2.http.FieldMap;
|
|
|
import retrofit2.http.FormUrlEncoded;
|
|
|
import retrofit2.http.GET;
|
|
|
@@ -94,11 +95,13 @@ public interface ApiService {
|
|
|
*/
|
|
|
@GET("app/find/commend_app")
|
|
|
Observable<BaseMessage> getCommendApp(@Query("game_id") String game_id, @Query("order") int order);
|
|
|
+
|
|
|
/**
|
|
|
* 查询用户是否可以弹窗推荐应用
|
|
|
*/
|
|
|
@GET("app/find/can/commend_app")
|
|
|
Observable<BaseMessage> canGetCommendApp(@Query("game_id") String game_id);
|
|
|
+
|
|
|
/**
|
|
|
* @return ,
|
|
|
* 主页抢任务
|
|
|
@@ -179,6 +182,7 @@ public interface ApiService {
|
|
|
*/
|
|
|
@POST("app/accepted_task/auto_check/")
|
|
|
Observable<BaseMessage> commitAutoTask(@Body JSONObject param);
|
|
|
+
|
|
|
/**
|
|
|
* 获取未查看的任务成功或失败的记录
|
|
|
*/
|
|
|
@@ -267,6 +271,7 @@ public interface ApiService {
|
|
|
|
|
|
/**
|
|
|
* 新手红包
|
|
|
+ *
|
|
|
* @return .
|
|
|
*/
|
|
|
@POST("app/newbie_task/login_red_packet")
|
|
|
@@ -523,6 +528,7 @@ public interface ApiService {
|
|
|
*/
|
|
|
@GET("app/punch/all_punch_log")
|
|
|
Observable<BaseMessage> getAllPunchLog(@Query("page") int page, @Query("per_page") int per_page);
|
|
|
+
|
|
|
/**
|
|
|
* 获取连续打卡记录
|
|
|
*/
|
|
|
@@ -577,6 +583,7 @@ public interface ApiService {
|
|
|
*/
|
|
|
@GET("app/punch/punch_and_sign_count")
|
|
|
Observable<BaseMessage> getPunchAndSignCount();
|
|
|
+
|
|
|
/**
|
|
|
* 获取今日之星数据
|
|
|
*/
|
|
|
@@ -888,7 +895,7 @@ public interface ApiService {
|
|
|
* 获取邀请用户排名
|
|
|
*/
|
|
|
@GET("app/user/invitation_top")
|
|
|
- Observable<BaseMessage> getInvitationTop(@Query("top") int top,@Query("start_time") long start_time,@Query("end_time") long end_time);//top默认为5,可以不传
|
|
|
+ Observable<BaseMessage> getInvitationTop(@Query("top") int top, @Query("start_time") long start_time, @Query("end_time") long end_time);//top默认为5,可以不传
|
|
|
|
|
|
/**
|
|
|
* 获取邀请用户进两月礼物发放记录
|
|
|
@@ -921,6 +928,7 @@ public interface ApiService {
|
|
|
*/
|
|
|
@GET("app/awaken/article")
|
|
|
Observable<BaseMessage> awakenApparticle(@Query("page") int page, @Query("per_page") int per_page);
|
|
|
+
|
|
|
/**
|
|
|
* 唤醒业务APP
|
|
|
*/
|
|
|
@@ -950,6 +958,7 @@ public interface ApiService {
|
|
|
*/
|
|
|
@PUT("app/gift_bag/receive/{id}")
|
|
|
Observable<BaseMessage> receiveGiftBag(@Path("id") int id);
|
|
|
+
|
|
|
/**
|
|
|
* 获取热门福利
|
|
|
*/
|
|
|
@@ -979,22 +988,26 @@ public interface ApiService {
|
|
|
*/
|
|
|
@PUT("app/user/bind_third")
|
|
|
Observable<BaseMessage> bindThird(@Body JSONObject jsonObject);
|
|
|
+
|
|
|
/**
|
|
|
* 换绑qq或微信
|
|
|
*/
|
|
|
@PUT("app/user/modify_third")
|
|
|
Observable<BaseMessage> modifyThird(@Body JSONObject jsonObject);
|
|
|
+
|
|
|
/**
|
|
|
* 发送/校验换绑验证码
|
|
|
*/
|
|
|
@POST("app/user/modify_third_sms")
|
|
|
Observable<BaseMessage> modifyThirdSms(@Body JSONObject jsonObject);
|
|
|
+
|
|
|
/**
|
|
|
* 检查是否需要输入邀请码
|
|
|
*/
|
|
|
@GET("app/auth/need_code")
|
|
|
Observable<BaseMessage> needCode(@Query("mobile") String mobile);
|
|
|
//---------------------------start 玩转游戏------------------------------
|
|
|
+
|
|
|
/**
|
|
|
* 玩转游戏——每日必玩
|
|
|
* 玩转游戏——近期最热
|
|
|
@@ -1010,6 +1023,7 @@ public interface ApiService {
|
|
|
*/
|
|
|
@GET("app/find/recommend/user_like")
|
|
|
Observable<BaseMessage> getUserLikeList();
|
|
|
+
|
|
|
/**
|
|
|
* 玩转游戏-获取主页游戏数据 1:天天更新 2:重点推荐
|
|
|
* display_type
|
|
|
@@ -1019,6 +1033,7 @@ public interface ApiService {
|
|
|
*/
|
|
|
@GET("app/find/recommend")
|
|
|
Observable<BaseMessage> getRecommendList(@Query("display_type") int display_type);
|
|
|
+
|
|
|
/**
|
|
|
* 玩转游戏-获取主页游戏数据 1:天天更新 2:重点推荐 更多
|
|
|
* display_type
|
|
|
@@ -1028,6 +1043,7 @@ public interface ApiService {
|
|
|
*/
|
|
|
@GET("app/find/recommend/list")
|
|
|
Observable<BaseMessage> getRecommendListMore(@Query("display_type") int display_type);
|
|
|
+
|
|
|
/**
|
|
|
* 玩转游戏-获取主页 获取标签列表
|
|
|
*/
|
|
|
@@ -1047,14 +1063,139 @@ public interface ApiService {
|
|
|
*/
|
|
|
@GET("app/find/detail/hot_games")
|
|
|
Observable<BaseMessage> getDetailHotGames(@Query("app_id") int app_id);
|
|
|
+
|
|
|
+
|
|
|
+ //---------------------------start game_user------------------------------
|
|
|
+
|
|
|
/**
|
|
|
- *
|
|
|
+ * 查询应用评论列表
|
|
|
+ * CommentType int8 `description:"评论类型 1:游戏 2:资讯" json:"comment_type"`
|
|
|
+ * app_id * integer (query) 应用id
|
|
|
+ * page_no integer (query) 页码
|
|
|
+ * page_size integer (query) 每页显示条数默认10条
|
|
|
*/
|
|
|
- @GET("")
|
|
|
- Observable<BaseMessage> get(@Query("app_id") int app_id);
|
|
|
-//---------------------------start 玩转游戏------------------------------
|
|
|
+ @GET("app/game_user/app_comment_list")
|
|
|
+ Observable<BaseMessage> getGameUserAppCommentList(@Query("page_no") int page_no, @Query("page_size") int page_size, @Query("app_id") int app_id, @Query("comment_type") int comment_type);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询应用评分详情
|
|
|
+ * app_id * integer (query) 应用id
|
|
|
+ */
|
|
|
+ @GET("app/game_user/app_score_detail")
|
|
|
+ Observable<BaseMessage> getGameUserAppScoreDetail(@Query("app_id") int app_id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询用户主页评论列表
|
|
|
+ * focus_user_id integer (query) 关注用户id
|
|
|
+ * page_no integer (query) 页码
|
|
|
+ * page_size integer (query) 每页显示条数默认10条
|
|
|
+ */
|
|
|
+ @GET("app/game_user/comment_list")
|
|
|
+ Observable<BaseMessage> getGameUserCommentList(@Query("page_no") int page_no, @Query("page_size") int page_size, @Query("focus_user_id") int focus_user_id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询用户主页详情
|
|
|
+ * focus_user_id * integer (query) 关注用户id
|
|
|
+ */
|
|
|
+ @GET("app/game_user/detail")
|
|
|
+ Observable<BaseMessage> getGameUserDetail(@Query("focus_user_id") int focus_user_id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 关注游戏
|
|
|
+ * focus_game_id * integer (query) 关注应用id
|
|
|
+ */
|
|
|
+ @POST("app/game_user/focus_game")
|
|
|
+ Observable<BaseMessage> postGameUserFocusGame(@Query("focus_game_id ") int focus_game_id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 关注用户
|
|
|
+ * focus_user_id * integer (query) 关注用户id
|
|
|
+ */
|
|
|
+ @POST("app/game_user/focus_user")
|
|
|
+ Observable<BaseMessage> postGameUserFocusUser(@Query("focus_user_id") int focus_user_id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询最近在玩以及同类型游戏
|
|
|
+ * focus_user_id * integer (query) 关注用户id
|
|
|
+ */
|
|
|
+ @GET("app/game_user/lately_game")
|
|
|
+ Observable<BaseMessage> getGameUserLatelyGame(@Query("focus_user_id") int focus_user_id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户主页点赞
|
|
|
+ * focus_user_id * integer (query) 关注用户id
|
|
|
+ */
|
|
|
+ @POST("app/game_user/like")
|
|
|
+ Observable<BaseMessage> postGameUserLike(@Query("focus_user_id") int focus_user_id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 回复用户评论
|
|
|
+ * ReplyUserCommentReq{
|
|
|
+ * content: string 评论内容
|
|
|
+ * user_comment_reply_id: integer ($int64) 回复id
|
|
|
+ * }
|
|
|
+ */
|
|
|
+ @POST("app/game_user/")
|
|
|
+ Observable<BaseMessage> postGameUserReplyComment(@Body JSONObject jsonObject);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询用户主页回复列表
|
|
|
+ * focus_user_id integer (query) 关注用户id
|
|
|
+ * page_no integer (query) 页码
|
|
|
+ * page_size integer (query) 每页显示条数默认10条
|
|
|
+ */
|
|
|
+ @GET("app/game_user/reply_list")
|
|
|
+ Observable<BaseMessage> getGameUserReplyList(@Query("page_no") int page_no, @Query("page_size") int page_size, @Query("focus_user_id") int focus_user_id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户评论用户
|
|
|
+ * UserCommentReq{
|
|
|
+ * content: string 评论内容
|
|
|
+ * expression: boolean 是否有表情
|
|
|
+ * user_comment_id: integer ($int64) 评论id
|
|
|
+ * }
|
|
|
+ */
|
|
|
+ @POST("app/game_user/user_comment")
|
|
|
+ Observable<BaseMessage> postGameUserUserComment(@Body JSONObject jsonObject);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询用户评论详情
|
|
|
+ * user_comment_id integer (query) 评论id
|
|
|
+ * page_no integer (query) 页码
|
|
|
+ * page_size integer (query) 每页显示条数默认10条
|
|
|
+ */
|
|
|
+ @GET("app/game_user/user_comment_detail")
|
|
|
+ Observable<BaseMessage> getGameUserUserCommentDetail(@Query("page_no") int page_no, @Query("page_size") int page_size, @Query("user_comment_id") int user_comment_id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户评论用户点赞
|
|
|
+ * user_comment_reply_id * integer (query) 回复id
|
|
|
+ */
|
|
|
+ @POST("app/game_user/user_comment_like")
|
|
|
+ Observable<BaseMessage> postGameUserUserCommentLike(@Query("user_comment_reply_id") int user_comment_reply_id);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户游戏评论
|
|
|
+ * GameCommentReq{
|
|
|
+ * CommentType int8 `description:"评论类型 1:游戏 2:资讯" json:"comment_type"`
|
|
|
+ * app_id: integer ($int64) 应用id
|
|
|
+ * content: string 评论内容
|
|
|
+ * score: integer ($int32) 评分 1-10
|
|
|
+ * }
|
|
|
+ */
|
|
|
+ @POST("app/game_user/user_game_comment")
|
|
|
+ Observable<BaseMessage> postGameUserUserGameComment(@Body JSONObject jsonObject);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户游戏评论点赞
|
|
|
+ * user_comment_id * integer (query) 评论id
|
|
|
+ */
|
|
|
+ @POST("app/game_user/user_game_comment_like")
|
|
|
+ Observable<BaseMessage> postGameUserUserGameCommentLike(@Query("user_comment_id") int user_comment_id);
|
|
|
+ //---------------------------end game_user------------------------------
|
|
|
+//---------------------------end 玩转游戏------------------------------
|
|
|
+
|
|
|
/**
|
|
|
- *
|
|
|
* type: 1002:快发出包 1003:腾讯出包 1004:小米出包
|
|
|
*/
|
|
|
@GET("app/find")
|
|
|
@@ -1062,30 +1203,38 @@ public interface ApiService {
|
|
|
|
|
|
/**
|
|
|
* platform 平台 1:andriod 2:ios
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("app/game_banner")
|
|
|
Observable<BaseMessage> gameBanner(@Query("platform") int platform);
|
|
|
+
|
|
|
/**
|
|
|
* platform 平台 1:andriod 2:ios
|
|
|
* 获取游戏中心主页活动数据
|
|
|
*/
|
|
|
@GET("app/game_banner/activity?platform=1")
|
|
|
Observable<BaseMessage> gameBannerAct();
|
|
|
+
|
|
|
/**
|
|
|
* platform 平台 1:andriod 2:ios
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("app/find/{id}")
|
|
|
Observable<BaseMessage> playGameDetail(@Path("id") int id);
|
|
|
+
|
|
|
/**
|
|
|
* 判断是否是第一次运行的设备
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("app/event_tracking/check_user_first")
|
|
|
Observable<BaseMessage> checkUserFirst();
|
|
|
+
|
|
|
/**
|
|
|
* 查询用户截图加密开关
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("app/common_config/need_shot_screen")
|
|
|
@@ -1095,47 +1244,56 @@ public interface ApiService {
|
|
|
// http://10.8.220.237:8010/v1/app/mobile_point/score 获取用户积分 post
|
|
|
// http://10.8.220.237:8010/v1/app/mobile_point/sms 获取短信验证码 post
|
|
|
// http://10.8.220.237:8010/v1/app/mobile_point/recharge 兑换积分 post
|
|
|
+
|
|
|
/**
|
|
|
* 获取商品列表
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("app/mobile_point/goods")
|
|
|
Observable<BaseMessage> getCMCCGoods();
|
|
|
+
|
|
|
/**
|
|
|
* 获取用户积分
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@POST("app/mobile_point/score")
|
|
|
Observable<BaseMessage> getCMCCScore(@Body JSONObject jsonObject);
|
|
|
+
|
|
|
/**
|
|
|
* 获取短信验证码
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@POST("app/mobile_point/sms")
|
|
|
Observable<BaseMessage> smsCMCC(@Body JSONObject jsonObject);
|
|
|
+
|
|
|
/**
|
|
|
* 兑换积分
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@POST("app/mobile_point/recharge")
|
|
|
Observable<BaseMessage> rechargeCMCC(@Body JSONObject jsonObject);
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
//---------------------------start 游戏sdk相关接口-------------------------------------
|
|
|
+
|
|
|
/**
|
|
|
* 请求授权
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("app/sdk/{game_key}")
|
|
|
Observable<BaseMessage> verificationAuth(@Header("Authorization") String token, @Path("game_key") String game_key);
|
|
|
+
|
|
|
/**
|
|
|
* 绵羊币支付订单查询接口
|
|
|
*/
|
|
|
@GET("app/sdk/find/order")
|
|
|
Observable<BaseMessage> sdkFindOrder(@Header("Authorization") String token, @Query("order_no") String order_no);
|
|
|
+
|
|
|
/**
|
|
|
* 绵羊币支付sdk订单
|
|
|
*/
|
|
|
@@ -1144,8 +1302,10 @@ public interface ApiService {
|
|
|
//---------------------------end 游戏sdk相关接口-------------------------------------
|
|
|
|
|
|
//---------------------------start 有米科技相关接口-------------------------------------
|
|
|
+
|
|
|
/**
|
|
|
* 获取有米积分余额
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("youmi/youmi_total_price")
|