update
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.shayu.onetoone.network;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.shayu.onetoone.bean.JoinAnchorBean;
|
||||
import com.shayu.onetoone.bean.UserBean;
|
||||
import com.yunbao.common.bean.ActiveModel;
|
||||
import com.yunbao.common.bean.AnchorRecommendItemModel;
|
||||
import com.yunbao.common.bean.AnchorRecommendModel;
|
||||
@@ -75,6 +77,68 @@ import retrofit2.http.QueryMap;
|
||||
* 1v1网络接口访问 参考 {@link com.yunbao.common.http.PDLiveApi}
|
||||
*/
|
||||
public interface OneToOneApi {
|
||||
/**
|
||||
* 用户手机号登录
|
||||
*
|
||||
*/
|
||||
@FormUrlEncoded
|
||||
@POST("/api/public/?service=Login.userLogin")
|
||||
Observable<ResponseModel<IMLoginModel>> loginByManager(
|
||||
@Field("user_login") String userName,
|
||||
@Field("user_pass") String passWord,
|
||||
@Field("uuid_Device") String uuidDevice,
|
||||
@Field("pushid") String pushid,
|
||||
@Field("lastlogindevice") String lastlogindevice
|
||||
);
|
||||
|
||||
/**
|
||||
* 用户手机号登录
|
||||
*/
|
||||
@GET("/api/public/?service=Friendappinfos.getInfo")
|
||||
Observable<ResponseModel<UserBean>> getBaseInfos(@Query("login")int login);
|
||||
|
||||
@GET("/api/public/?service=Home.getRandJoinAnchor")
|
||||
Observable<ResponseModel<List<JoinAnchorBean>>> getRandJoinAnchor();
|
||||
@GET("/api/public/?service=Home.getCustomerService")
|
||||
Observable<ResponseModel<List<String>>> getCustomerService();
|
||||
@GET("/api/public/?service=Login.userLoginByThird")
|
||||
Observable<ResponseModel<IMLoginModel>> userLoginByThird(@Query("user_id")String uid,
|
||||
@Query("openid") String openId,
|
||||
@Query("admin_id") String promCode,
|
||||
@Query("uuid_Device") String uuid,
|
||||
@Query("nicename") String nickName,
|
||||
@Query("avatar") String avatar,
|
||||
@Query("app_source")String source,
|
||||
@Query("source")String devices,
|
||||
@Query("sign")String sign,
|
||||
@Query("lastlogindevice")String lastlogindevice,
|
||||
@Query("type") String type,
|
||||
@Query("pushid")String pushid
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user