个人主页礼物墙接口对接

This commit is contained in:
huangjian
2022-06-13 15:56:57 +08:00
parent 5bfac1508c
commit a2d17c7fc4
10 changed files with 116 additions and 90 deletions

View File

@@ -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);
/**
* 关键词搜索用户

View File

@@ -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);