我在Kotlin中有这个数据类(例子):
import com.google.firebase.database.Exclude data class User(val name: String = "", @Exclude val age: Int = 0)
而且我不想在firebase中保存年龄属性.@Exclude应该这样做,但它不起作用,年龄仍然保存.
有没有解决方法?
kotlin firebase firebase-realtime-database
firebase ×1
firebase-realtime-database ×1
kotlin ×1