feat:完成我的-菜单列表:动态数据(接口)

This commit is contained in:
max
2024-06-18 19:41:57 +08:00
parent 14fa576814
commit 9d0b6e3a9f
16 changed files with 122 additions and 151 deletions

View File

@@ -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>>
}
}

View File

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

View File

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