个人主页礼物墙接口对接
This commit is contained in:
@@ -128,7 +128,7 @@ public interface IUserModel extends IModel {
|
||||
*
|
||||
* @param uid
|
||||
*/
|
||||
public Single<List<GiftWallInfo>> requestUserGiftWall(long uid, int orderType);
|
||||
public Single<List<GiftWallInfo>> requestUserGiftWall(long uid, int giftType, int orderType);
|
||||
|
||||
/**
|
||||
* 关键词搜索用户
|
||||
|
@@ -8,7 +8,6 @@ import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.yizhuan.xchat_android_core.auth.AuthModel;
|
||||
import com.yizhuan.xchat_android_core.auth.entity.ThirdUserInfo;
|
||||
import com.yizhuan.xchat_android_core.auth.event.LoginEvent;
|
||||
import com.yizhuan.xchat_android_core.auth.event.LogoutEvent;
|
||||
import com.yizhuan.xchat_android_core.base.BaseModel;
|
||||
@@ -571,12 +570,10 @@ public final class UserModel extends BaseModel implements IUserModel {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Single<List<GiftWallInfo>> requestUserGiftWall(long uid, int orderType) {
|
||||
|
||||
return api.giftWall(
|
||||
String.valueOf(uid),
|
||||
String.valueOf(orderType)
|
||||
)
|
||||
public Single<List<GiftWallInfo>> requestUserGiftWall(long uid, int giftType, int orderType) {
|
||||
return api.giftWall(String.valueOf(uid),
|
||||
giftType,
|
||||
String.valueOf(orderType))
|
||||
.compose(RxHelper.handleBeanData())
|
||||
.compose(RxHelper.handleSchedulers());
|
||||
}
|
||||
@@ -927,8 +924,9 @@ public final class UserModel extends BaseModel implements IUserModel {
|
||||
* @param orderType
|
||||
* @return
|
||||
*/
|
||||
@GET("/giftwall/get")
|
||||
@GET("/giftwall/getByGiftType")
|
||||
Single<GiftWallListResult> giftWall(@Query("uid") String uid,
|
||||
@Query("giftType") int giftType,
|
||||
@Query("orderType") String orderType);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user