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.PersonaltyBean; 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.bean.UserInfo; import com.qxcm.moduleutil.bean.UserTagBean; import com.qxcm.moduleutil.bean.zhuangb.ZhuangBanShangChengBean; 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.FORGOT_PASSWORD) Call> forgotPassword(@Field("new_password") String new_password, @Field("mobile") String mobile, @Field("sms_code") String sms_code); @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, @Field("user_id") String user_id); @FormUrlEncoded @POST(Constants.CREATE_ALBUM) Call > createAlbum(@Field("name") String name, @Field("pwd")String pwd, @Field("image") String image); @FormUrlEncoded @POST(Constants.EDIT_ALBUM) Call > editAlbum(@Field("album_id") String album_id,@Field("name") String name, @Field("pwd")String pwd, @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.GET_USER_HOME_ZONE) Observable>> getCircleUserList(@Field("user_id") String user_id,@Field("page") String page, @Field("page_limit") String page_limit); @FormUrlEncoded @POST(Constants.LIKE_ZONE) Call> likeZone(@Field("id") String zone_id); @FormUrlEncoded @POST(Constants.TOPIC_ID) Observable>> topicId(@Field("topic_id") String topic_id); @FormUrlEncoded @POST(Constants.ZONE_DETAIL) Observable> zoneDetail(@Field("id") String topic_id); @FormUrlEncoded @POST(Constants.GET_USER_HOME) Observable> getUserHome(@Field("user_id") String user_id); @FormUrlEncoded @POST(Constants.DELETE_COMMENT) Call> deleteComment(@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(Constants.CLEAR_LOGIN_INFO) Call> clearLoginInfo(@Field("token") String token); @FormUrlEncoded @POST(Constants.CANCEL) Call> cancel(@Field("token") String token); @FormUrlEncoded @POST(Constants.DELETE_ZONE) Call> deleteZone(@Field("id") String id); @GET(Constants.GET_MY_INFO) Observable> getMyInfo(); @FormUrlEncoded @POST(Constants.ED_USER_INFO) Call> editUserInfo(@Field("nickname") String nickname, @Field("birthday") String birthday, @Field("sex") String sex, @Field("avatar") String avatar, @Field("images") String images, @Field("profile") String profile, @Field("tag_id") String tag_id); @FormUrlEncoded @POST(Constants.ED_USER_BG) Call> editUserBg(@Field("images") String images); @GET(Constants.GET_USER_TAG_LIST) Observable>> getUserTagList(); @FormUrlEncoded @POST(Constants.GET_LIKE_LIST) Observable>> getLikeList(@Field("id") String id); @FormUrlEncoded @POST(Constants.GET_ALBUM_DETAIL) Observable> getAlbumDetail(@Field("album_id") String albumId, @Field("pwd") String pwd, @Field("page") String page, @Field("page_limit") String page_limit); @GET(Constants.GET_PERSONALTY) Observable>> getPersonaltyList(); @FormUrlEncoded @POST(Constants.POST_GZ) Call> userGuanz(@Field("user_id") String userId,@Field("type")String type); @GET(Constants.GET_DECORATE) Observable>> getDecorateList(@Query("type") String type); @FormUrlEncoded @POST(Constants.SET_USER_DECORATE) Call> setUserDecorate(@Field("udid") String udid); @FormUrlEncoded @POST(Constants.UP_ALBUM) Call> upAddAlbum(@Field("album_id") String album_id, @Field("images") String images, @Field("content") String content); @FormUrlEncoded @POST(Constants.MOVE_ALBUM) Call> moveAlbum(@Field("id") String id,@Field("new_album_id")String new_album_id); @FormUrlEncoded @POST(Constants.DELETE_ALBUM_IMAGE) Call> deleteAlbumImage(@Field("id") String id); @FormUrlEncoded @POST(Constants.DELETE_ALBUM) Call> deleteAlbum(@Field("album_id") String id); @FormUrlEncoded @POST(Constants.LIKE_ALBUM) Call> likeAlbum(@Field("album_id") String id); }