[BugFix]个播房隐藏金币明细

This commit is contained in:
wushaocheng
2023-03-28 20:48:10 +08:00
parent 1c47bec92b
commit 58199f21a3
6 changed files with 99 additions and 46 deletions

View File

@@ -0,0 +1,16 @@
package com.yizhuan.xchat_android_core.earn.bean
import java.math.BigDecimal
data class RoomTypeInfo(
val uid: Long,
val diamonds: BigDecimal,
val crystals: Double,
val golds: BigDecimal,
val isClan: Boolean = false,
val isClanElder: Boolean = false,
val hasGoldExchangeAuth: Boolean = false,
val sendGold: Boolean = false,
val hasPaymentPwd: Boolean = false,
val roomType: Int,
)

View File

@@ -14,6 +14,11 @@ object EarnModel : BaseModel() {
private val api = RxNet.create(Api::class.java)
suspend fun queryWithRoomType(): RoomTypeInfo? =
launchRequest {
api.queryWithRoomType()
}
suspend fun getEarnRecord(): EarnRecordInfo? =
launchRequest {
api.getEarnRecordInfo()
@@ -80,6 +85,12 @@ object EarnModel : BaseModel() {
private interface Api {
/**
* @return
*/
@GET("/purse/queryWithRoomType")
suspend fun queryWithRoomType(): ServiceResult<RoomTypeInfo>
/**
* @return
*/