feat:完成我的-菜单列表:动态数据(接口)
This commit is contained in:
@@ -8,6 +8,7 @@ import com.chwl.core.community.CommunityConstant
|
||||
import com.chwl.core.community.bean.UnReadCountInfo
|
||||
import com.chwl.core.home.bean.*
|
||||
import com.chwl.core.room.bean.AnchorInfo
|
||||
import com.chwl.core.room.bean.MeCenterInfo
|
||||
import com.chwl.core.user.bean.DiamondGiveHistoryInfo
|
||||
import com.chwl.core.user.bean.SearchUserInfo
|
||||
import com.chwl.core.user.bean.UserInfo
|
||||
@@ -128,6 +129,7 @@ object HomeModel : BaseModel() {
|
||||
tabId, pageNum, pageSize
|
||||
)
|
||||
}
|
||||
|
||||
//首页改版资源位
|
||||
suspend fun getCurrentResource(): List<CurrentResourceInfo>? =
|
||||
launchRequest {
|
||||
@@ -195,6 +197,11 @@ object HomeModel : BaseModel() {
|
||||
api.getHomeMyCollectRoomList(pageNum, pageSize)
|
||||
}
|
||||
|
||||
suspend fun requestMeCenterInfoList(): List<MeCenterInfo>? =
|
||||
launchRequest {
|
||||
api.requestMeCenterInfoList()
|
||||
}
|
||||
|
||||
private interface Api {
|
||||
|
||||
/**
|
||||
@@ -408,6 +415,11 @@ object HomeModel : BaseModel() {
|
||||
@Query("pageSize") pageSize: Int
|
||||
): ServiceResult<List<HomeRoomInfo>>
|
||||
|
||||
/**
|
||||
* 个人主页
|
||||
*/
|
||||
@GET("personal/center/list")
|
||||
suspend fun requestMeCenterInfoList(): ServiceResult<List<MeCenterInfo>>
|
||||
}
|
||||
|
||||
}
|
@@ -209,16 +209,18 @@ public class RouterType {
|
||||
*/
|
||||
public static final int MY_SET = 75;
|
||||
|
||||
/**
|
||||
* 76-切换分区
|
||||
*/
|
||||
public static final int SWITCH_REGION= 76;
|
||||
|
||||
/**
|
||||
* 77-我的转赠
|
||||
*/
|
||||
public static final int MY_DONATION = 77;
|
||||
|
||||
/**
|
||||
* 收益记录(目前只是本地用到,所以用了100000)
|
||||
*/
|
||||
public static final int MY_REVENUE = 100000;
|
||||
/**
|
||||
* 用户等级(目前只是本地用到,所以用了100001)
|
||||
*/
|
||||
public static final int USER_LEVEL = 100001;
|
||||
/**
|
||||
* 我的转赠(目前只是本地用到,所以用了100002)
|
||||
*/
|
||||
public static final int USER_DONATION = 100002;
|
||||
}
|
||||
|
@@ -2,12 +2,14 @@ package com.chwl.core.room.bean
|
||||
|
||||
data class MeCenterInfo(
|
||||
val icon: Int? = null,
|
||||
val centerCode: String? = null,
|
||||
val centerBadge: String? = null,
|
||||
val centerId: Int = 0,
|
||||
val centerName: String = "",
|
||||
val centerPic: String = "",
|
||||
val centerSeq: Int = 0,
|
||||
val centerStatus: Int = 0,
|
||||
val centerUrl: String = "",
|
||||
val skipType: Int = 0,
|
||||
val centerId: Int? = null,
|
||||
var centerName: String? = null,
|
||||
val centerPic: String? = null,
|
||||
val androidCenterPic: String? = null,
|
||||
val centerSeq: Int? = null,
|
||||
val centerStatus: Int? = null,
|
||||
val centerUrl: String? = null,
|
||||
val skipType: Int? = null,
|
||||
)
|
Reference in New Issue
Block a user