package com.qxcm.moduleutil.http; import com.qxcm.moduleutil.bean.AlbumBean; import com.qxcm.moduleutil.bean.CircleListBean; import com.qxcm.moduleutil.bean.CommentBean; import com.qxcm.moduleutil.bean.ExpandColumnBean; import com.qxcm.moduleutil.bean.GiftLabelBean; import com.qxcm.moduleutil.bean.HeatedBean; import com.qxcm.moduleutil.bean.NewsDataBean; import com.qxcm.moduleutil.bean.RealNameBean; import com.qxcm.moduleutil.bean.RewardUserBean; import com.qxcm.moduleutil.bean.RoonGiftModel; import com.qxcm.moduleutil.bean.UserBean; import com.qxcm.moduleutil.widget.Constants; import java.util.List; import java.util.Map; import io.reactivex.Observable; import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.http.Field; import retrofit2.http.FieldMap; import retrofit2.http.FormUrlEncoded; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.Query; public interface ApiServer { @FormUrlEncoded //请求验证码 @POST(Constants.SEND_CODE) Observable> sendCode(@Field("mobile") String mobile,@Field("event")String event); @FormUrlEncoded @POST(Constants.LOGIN) Observable>> login(@Field("user_login") String user_login, @Field("sms_code") String sms_code); @FormUrlEncoded @POST(Constants.USER_LOGIN) Observable>> userLogin(@Field("user_login") String user_login, @Field("password") String password); @POST(Constants.UPLOAD_NICK_NAME) Observable> upUserNickname(); @FormUrlEncoded @POST(Constants.UPLOAD_USER_PIC) Observable> upUserPic(@Field("sex") String sex); @FormUrlEncoded @POST(Constants.SWITCH_ACCOUNTS) Observable>> switchAccounts(@Field("user_login") String user_id); @FormUrlEncoded @POST(Constants.USER_UPDATE) Observable> userUpdate(@FieldMap Map map); @GET(Constants.AUTHORIZATION) Observable> authorization(); @FormUrlEncoded @POST(Constants.CHANGE_PASSWORD) Call> getPostData(@Field("new_password") String new_password,@Field("mobile") String mobile,@Field("sms_code") String code,@Field("user_id") String userId); @FormUrlEncoded @POST(Constants.REAL_NAME_RESULT) Call> getRealNameResult(@Field("orderNo") String order_no); @FormUrlEncoded @POST(Constants.URL_LOGIN) Observable>> oauthLogin(@Field("login_token") String login_token); @FormUrlEncoded @POST(Constants.URL_AUTH_CODE) Observable>> authCode(@Field("auth_code") String login_token); @FormUrlEncoded @POST(Constants.URL_WX_CODE) Observable>> authCode1(@Field("code") String login_token); @FormUrlEncoded @POST(Constants.REAL_NAME) Observable> realName(@Field("real_name") String real_name, @Field("card_number") String card_number); @FormUrlEncoded @POST(Constants.GET_EXPAND_COLUMN) Observable>> getExpandColumn(@Field("type") String type); @FormUrlEncoded @POST(Constants.GET_OFFICIAL_NOTICE) Observable>> getOfficialNotice( @Field("page") String page, @Field("page_limit") String page_limit,@Field("type") String type); @FormUrlEncoded @POST(Constants.GET_ALBUM_LIST) Observable>> getAlbumList(@Field("page") String page, @Field("page_limit") String page_limit); @FormUrlEncoded @POST(Constants.CREATE_ALBUM) Call > createAlbum(@Field("name") String name, @Field("image") String image); @FormUrlEncoded @POST(Constants.GET_REWARD_LIST) Observable>> getRewardList(@Field("id") String id, @Field("page") int page, @Field("page_limit") int page_limit); @GET(Constants.GET_GIFT_LABEL) Observable>> getGiftLabel(@Query("have_hot") String have_hot); @GET(Constants.GIFT_LIST)//获取礼物列表 Observable>> getGiftList(@Query("label") int label); @GET(Constants.TOPIC_LIST)//获取话题 Observable>> topicList(@Query("page") String page, @Query("page_limit") String page_limit); @FormUrlEncoded @POST(Constants.PUBLISH_ZONE) Call> publishZone(@Field("images") String images, @Field("content") String content, @Field("topic_id") String topic_id, @Field("room_id") String room_id,@Field("ip") String ip); @GET(Constants.GET_CATEGORIES) Observable>> getCategories(); @GET(Constants.GET_CIRCLE_LIST) Observable>> getCircleList(@Query("page") String page, @Query("page_limit") String page_limit); @FormUrlEncoded @POST(Constants.LIKE_ZONE) Call> likeZone(@Field("id") String zone_id); @FormUrlEncoded @POST(Constants.GET_COMMENT_LIST) Observable> getCommentList(@Field("id") String id, @Field("page") String page, @Field("page_limit") String page_limit); @FormUrlEncoded @POST(Constants.COMMENT_ZONE) Call> commentZone(@Field("id") String id, @Field("content") String content, @Field("pid") String pid, @Field("reply_to") String reply_to); // @FormUrlEncoded // @POST(Constant.URL.ADDBANK) // Observable> addBank(@Field("token") String token, @Field("bank_num") String bankNum, @Field("cardholder") String cardholder, @Field("bank_type") int bankType, // @Field("bank_name") String bankName, @Field("mobile") String mobile, @Field("bank_zhi") String bankZhi, @Field("card_number") String cardNumber, // @Field("code") String code // ); // // @FormUrlEncoded // @POST(Constant.URL.SEND_CODE) // Observable> sendCode(@Field("token") String token, @Field("mobile") String mobile, @Field("type") int type); // // @FormUrlEncoded // @POST(URLConstants.CHECK_SMS_CODE) // Observable> checkSmsCode(@Field("mobile") String mobile, @Field("code") String code); // // @FormUrlEncoded // @POST(Constant.URL.USER_BANK) // Observable> getUserBank(@Field("token") String token); // // @FormUrlEncoded // @POST(Constant.URL.RECHARGE) // Observable> userRecharge(@Field("token") String token, @Field("money") String money, @Field("type") int type); // @FormUrlEncoded // @POST(Constant.URL.THREE_PARTY_LOGIN) // Observable> threePay(@Field("user_id") String userId, @Field("type") int type, @Field("id") String id); // // @FormUrlEncoded // @POST(Constant.URL.ALIPAYMENT) // Observable> aliPay(@Field("token") String token, @Field("user_id") String userId, @Field("type") int type, @Field("id") String id); // // @FormUrlEncoded // @POST(Constant.URL.WXPAYMENT) // Observable> wxPay(@Field("token") String token, @Field("user_id") String userId, @Field("type") int type, @Field("id") String id); // // // @FormUrlEncoded // @POST(Constant.URL.EDITBANK) // Observable> editBank(@Field("token") String token, @Field("cardholder") String cardholder, @Field("bank_name") String bank_name, // @Field("mobile") String mobile, @Field("card_number") String card_number, @Field("id") String id, // @Field("bank_num") String bank_num, @Field("bank_zhi") String bank_zhi, @Field("code") String code); // // @FormUrlEncoded // @POST(Constant.URL.USERWITHDRAW) // Observable> userWithdraw(@Field("token") String token, @Field("bank_id") String bank_id, @Field("number") String number, @Field("password") String password); // // @FormUrlEncoded // @POST(Constant.URL.LOGIN) // Observable> login(@Field("mobile") String mobile, @Field("password") String password, @Field("code") String code, @Field("type") int type); // // @FormUrlEncoded // @POST(Constant.URL.LOGIN) // Observable> oauthLogin(@Field("netease_token") String netease_token, @Field("access_token") String access_token, @Field("type") int type); // // @FormUrlEncoded // @POST(Constant.URL.SETUSERSEX) // Observable> setUserSex(@Field("user_id") String user_id, @Field("sex") int sex); // // @FormUrlEncoded // @POST(Constant.URL.THIRDPARTYLOGIN) // Observable> thirdPartyLogin(@Field("openid") String openid, @Field("three_party") int three_party, @Field("nickname") String nickname,@Field("openid_old") String oldOpenId, @Field("head_pic") String head_pic); // // // @FormUrlEncoded // @POST(Constant.URL.EARNINGS) // Observable> getEarnings(@Field("token") String token); // // @FormUrlEncoded // @POST(Constant.URL.CONVERTEARNINGS) // Observable> convertEarnings(@Field("token") String token, @Field("number") String number, @Field("password") String password); // // // @FormUrlEncoded // @POST(Constant.URL.CASHLOG) // Observable>> getCashLog(@Field("token") String token, @Field("p") int p, @Field("change_type") int change_type); // // @FormUrlEncoded // @POST(Constant.URL.BALANCE) // Observable> getBalance(@Field("token") String token, @Field("type") int type); // // @FormUrlEncoded // @POST(Constant.URL.FOLLOW) // Observable> follow(@Field("token") String token, @Field("user_id") String userId, @Field("type") int type); // // @FormUrlEncoded // @POST(Constant.URL.FRIENDLIST) // Observable>> friendList(@Field("p") int p); // // @FormUrlEncoded // @POST(Constant.URL.FOLLOWLIST) // Observable>> followList(@Field("p") int p); // // @FormUrlEncoded // @POST(Constant.URL.FANSLIST) // Observable>> fansList(@Field("p") int p); // // @POST(Constant.URL.MYINFO) // Observable> userInfo(); // // @FormUrlEncoded // @POST(Constant.URL.USERINFO) // Observable> userInfoData(@Field("user_id") String userId, @Field("emchat_username") String emchatUsername, @Field("visit") int visit); // // @POST(Constant.URL.VIPINFO) // Observable> vipinfo(); // // @POST(Constant.URL.SERVICEUSER) // Observable> serviceUser(); // // @POST(Constant.URL.ARTICLE_CATEGORIES) // Observable>> articleCategories(); // // @FormUrlEncoded // @POST(Constant.URL.ARTICLE_LIST) // Observable>> articleList(@Field("article_cat_id") String articleCatId); // // @POST(Constant.URL.USER_NOBILITYINFO) // Observable> userNobilityInfo(); // // @POST(Constant.URL.NOBILITY) // Observable>> nobility(); // // @FormUrlEncoded // @POST(Constant.URL.BUYNOBILITY) // Observable> buyNobility(@Field("nobility_id") String nobilityId); // // @FormUrlEncoded // @POST(Constant.URL.RENEWNOBILITY) // Observable> renewNobility(@Field("day") String day); // // @FormUrlEncoded // @POST(Constant.URL.UPDATE_USERINFO) // Observable> updateUserInfo(@Field("signature") String signature, @Field("birthday") String birthday, @Field("constellation") String constellation, @Field("profession") String profession, // @Field("city_id") String city_id, @Field("user_photo") String user_photo, @Field("sex") String sex, @Field("head_picture") String head_picture, // @Field("nickname") String nickname, @Field("province_id") String province_id, @Field("user_no") String userNo, @Field("county_id") String county_id); // // @FormUrlEncoded // @POST(Constant.URL.INDEX_LABEL) // Observable>> indexLabel(@Field("category_id") String categoryId, @Field("p") int p); // // @FormUrlEncoded // @POST(Constant.URL.ADDLABEL) // Observable> addLabel(@Field("ids") String ids); // // @POST(Constant.URL.CASHTYPE) // Observable>> cashType(); // // @FormUrlEncoded // @POST(Constant.URL.COMEUSER) // Observable>> comeUser(@Field("token") String token, @Field("p") int p); // // @GET(Constant.URL.APPUPDATE) // Observable> appUpdate(); // // @GET(Constant.URL.CHECK_UPDATE) // Observable> checkUpdate(); // // @POST(Constant.URL.USER_FILES) // Observable> userFiles(); // // @FormUrlEncoded // @POST(Constant.URL.BIND_MOBILE) // Observable> bindMobile(@Field("mobile") String mobile, @Field("code") String code); // // @FormUrlEncoded // @POST(Constant.URL.RESET_PASSWORD) // Observable> resetPassword(@Field("mobile") String mobile, @Field("code") String code, @Field("password") String password); // // @FormUrlEncoded // @POST(Constant.URL.MESSAGE_SETTING) // Observable> messageSetting(@Field("broadcast") int broadcast, @Field("fans") int fans, @Field("news_voice") int news_voice, @Field("news_vibrate") int news_vibrate, @Field("only_friend") int only_friend ); // // @FormUrlEncoded // @POST(Constant.URL.USER_BLACK_LIST) // Observable>> userBlackList(@Field("p") int page, @Field("keyword") String keyword); // // @FormUrlEncoded // @POST(Constant.URL.ADD_BLACK_USER) // Observable> removeBlackUser(@Field("black_id") String blackId, @Field("type") int type); // // @FormUrlEncoded // @POST(Constant.URL.QUIT_ROOM_WITH_USER_ID) // Observable> quitRoomWithUserId(@Field("room_id") String roomId, @Field("user_id") String userId); // // @POST(Constant.URL.SIGN_SWITCH) // Observable> signSwitch(); // // @FormUrlEncoded // @POST(Constant.URL.SET_SECOND_PASSWORD) // Observable> setSecondPassword(@Field("mobile") String mobile, @Field("password") String password, @Field("code") String code); // // @FormUrlEncoded // @POST(URLConstants.NAME_AUTH) // Observable> nameAuth(@Field("userId") String userId, @Field("fullName") String fullName, @Field("idNumber") String idNumber, @Field("idCard") String idCard, @Field("front") String front, @Field("back") String back); // // @POST(Constant.URL.USER_PHOTO) // Observable>> userPhotos(); // // @FormUrlEncoded // @POST(Constant.URL.DELETE_USER_PHOTO) // Observable> deleteUserPhoto(@Field("id") String ids); // // @FormUrlEncoded // @POST(Constant.URL.ADD_USER_PHOTO) // Observable> addUserPhoto(@Field("photo") String photo); // // @FormUrlEncoded // @POST(Constant.URL.LOGOUT_REASON) // Observable> logoutReason(@Field("token") String token, @Field("mobile") String mobile, // @Field("reason") String reason,@Field("code") String code); // // @FormUrlEncoded // @POST(Constant.URL.LOGOUT_STATUS) // Observable> getlogoutStatus(@Field("token") String token, @Field("mobile") String mobile); }