| | |
| | | package cn.flightfeather.supervision.common.utils |
| | | |
| | | import cn.flightfeather.supervision.common.executor.BgTaskStatus |
| | | import cn.flightfeather.supervision.common.executor.BgTaskStatusJsonSerializer |
| | | import com.google.gson.Gson |
| | | import com.google.gson.GsonBuilder |
| | | |
| | | object JsonUtil { |
| | | |
| | | val gson: Gson = GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create() |
| | | val gson: Gson = GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss") |
| | | .registerTypeAdapter(BgTaskStatus::class.java, BgTaskStatusJsonSerializer()) |
| | | .create() |
| | | } |