金币详情功能
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package com.yizhuan.xchat_android_core.earn.bean
|
||||
|
||||
data class ClanHallMemberIncomeTotalInfo(
|
||||
val total: Double,
|
||||
val memberSettlement: List<MemberSettlement>
|
||||
)
|
@@ -0,0 +1,13 @@
|
||||
package com.yizhuan.xchat_android_core.earn.bean
|
||||
|
||||
data class MemberSettlement(
|
||||
val uid: Long,
|
||||
val nick: String,//昵称
|
||||
val avatar: String,//头像
|
||||
val exchangeGolds: Double,//兑换金币数
|
||||
val settlementGolds: Double,//结算金币数
|
||||
val hallId: Long,
|
||||
val hallOwnerUid: Long,
|
||||
val hallAvatar: String,//房间头像
|
||||
val hallName: String//房间名
|
||||
)
|
@@ -2,6 +2,7 @@ package com.yizhuan.xchat_android_core.earn.model
|
||||
|
||||
import com.yizhuan.xchat_android_core.base.BaseModel
|
||||
import com.yizhuan.xchat_android_core.bean.response.ServiceResult
|
||||
import com.yizhuan.xchat_android_core.earn.bean.ClanHallMemberIncomeTotalInfo
|
||||
import com.yizhuan.xchat_android_core.earn.bean.ConfigWithdrawInfo
|
||||
import com.yizhuan.xchat_android_core.earn.bean.EarnRecordInfo
|
||||
import com.yizhuan.xchat_android_core.earn.bean.GoldToDiamondInfo
|
||||
@@ -70,6 +71,11 @@ object EarnModel : BaseModel() {
|
||||
)
|
||||
}
|
||||
|
||||
suspend fun getMemberSettlement(startTime: String, endTime: String): ClanHallMemberIncomeTotalInfo? =
|
||||
launchRequest {
|
||||
api.getMemberSettlement(startTime, endTime)
|
||||
}
|
||||
|
||||
private interface Api {
|
||||
|
||||
/**
|
||||
@@ -125,6 +131,15 @@ object EarnModel : BaseModel() {
|
||||
@Query("postCode") postCode: String
|
||||
): ServiceResult<String>
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
@GET("/clanGoldSettlement/hallMemberTotalList")
|
||||
suspend fun getMemberSettlement(
|
||||
@Query("startTime") startTime: String,
|
||||
@Query("endTime") endTime: String
|
||||
): ServiceResult<ClanHallMemberIncomeTotalInfo>
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user