[BugFix]个播房隐藏金币明细
This commit is contained in:
@@ -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,
|
||||
)
|
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user