|
@@ -7,6 +7,10 @@ import com.baomidou.mybatisplus.enums.FieldFill
|
|
|
import com.baomidou.mybatisplus.enums.IdType
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude
|
|
|
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize
|
|
|
+import com.fasterxml.jackson.databind.annotation.JsonSerialize
|
|
|
+import com.gxzc.zen.common.config.jackson.LongJsonDeserializer
|
|
|
+import com.gxzc.zen.common.config.jackson.LongJsonSerializer
|
|
|
import io.swagger.annotations.ApiModelProperty
|
|
|
import java.io.Serializable
|
|
|
import java.util.*
|
|
@@ -23,6 +27,8 @@ open class BaseModel : Serializable {
|
|
|
|
|
|
// 主键
|
|
|
@TableId(type = IdType.AUTO)
|
|
|
+ @JsonSerialize(using = LongJsonSerializer::class)
|
|
|
+ @JsonDeserialize(using = LongJsonDeserializer::class)
|
|
|
var id: Long? = null
|
|
|
|
|
|
// 创建时间
|