yjp 1 год назад
Родитель
Сommit
dfdb79c362
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      framework/core/application/info.go

+ 2 - 2
framework/core/application/info.go

@@ -18,6 +18,6 @@ type InfoUserIDFields struct {
 
 // InfoTimeFields Info的时间相关字段
 type InfoTimeFields struct {
-	CreatedTime     string `json:"createdTime" sqlresult:"column:created_time;parseTime:'2006-01-02 15:04:05'"`
-	LastUpdatedTime string `json:"lastUpdatedTime" sqlresult:"column:last_updated_time;parseTime:'2006-01-02 15:04:05'"`
+	CreatedTime     string `json:"createdTime" sqlresult:"column:created_time;timeLayout:'2006-01-02 15:04:05'"`
+	LastUpdatedTime string `json:"lastUpdatedTime" sqlresult:"column:last_updated_time;timeLayout:'2006-01-02 15:04:05'"`
 }