ResultDto.kt 410 B

123456789101112131415161718192021
  1. package com.gxzc.zen.common.dto
  2. import com.fasterxml.jackson.annotation.JsonFormat
  3. import khronos.Dates
  4. import java.util.*
  5. /**
  6. * 基础 数据传输对象
  7. * @author NorthLan
  8. * @date 2018/2/1
  9. * @url https://noahlan.com
  10. */
  11. data class ResultDto(
  12. val code: Int,
  13. val msg: String?,
  14. val data: Any?
  15. ) {
  16. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  17. val time: Date = Dates.today
  18. }