tj
2025-03-28 dde2eeddbaf07246da7c2c352e7d49ec63fddcd2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.example.firstapp.database.entity
 
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.*
 
@Entity(tableName = "Code")
data class Code(
    @PrimaryKey(autoGenerate = true) val id: Long = 0, // 自增长的 id
    val category: String,
    val categoryId: Long,
    val typeId: Long,
    val ruleId: Long,
    val msgId: Long,
    var createTime: String,
    val oneLevel: String,     //type改成oneLevel
    var secondLevel: String,  //name改成secondLevel
    val code: String,         //快递对应取件码、还款对应金额
    var pickup: Int,          //快递取件状态
    var pickupTime: String,   //快递取件时间
    var overTime: String,     //快递超期时间、还款日期
    var address: String,      //地址信息
    var remarks: String,      //备注信息保存
    var time: Date = Date(),
)