邀请列表查看详情数据格式不一致导致无法显示昵称的问题

This commit is contained in:
yitao_hello
2022-02-28 17:10:37 +08:00
parent 0a15ba5bf3
commit 6ab95bda6c
8 changed files with 72 additions and 48 deletions

View File

@@ -0,0 +1,20 @@
package com.yizhuan.xchat_android_core.relation.cp
data class CpInviteDetailEntity(
val acceptAvatar: String? = "",
val acceptGender: Int = 1,
val acceptNick: String = "",
val acceptUid: Long = 0,
val cpId: Int = 0,
val declaration: String = "",
val inviteAvatar: String? = null,
val inviteGender: Int = 1,
val inviteNick: String = "",
val inviteUid: Long = 0,
val propsId: Int = 0,
val propsImg: String = "",
val propsName: String = "",
val propsPrice: Double = 0.0,
val recommenTxtList: List<String>? = null,
val replyExpireTime: Int = 0
)

View File

@@ -1,7 +1,5 @@
package com.yizhuan.xchat_android_core.relation.cp
import com.google.gson.annotations.SerializedName
data class UserCpListEntity(
val acceptUid: Long = 0,
val acceptUserAvatar: String = "",
@@ -21,7 +19,7 @@ data class UserCpListEntity(
val propsImg: String = "",
val propsName: String = "",
val propsPrice: Double = 0.0,
val state: Int = 0,//状态1-邀请中2-CP中3-拒绝4-解绑中5-解绑完成
val state: Int = 0,//状态1-邀请中2-CP中3-拒绝4-解绑中5-解绑完成 6 已过期
val unboundUid: Int = 0,//解绑人
val updateTime: Long = 0
)