Browse Source

修改bug

yjp 9 months ago
parent
commit
dfdb79c362
1 changed files with 2 additions and 2 deletions
  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'"`
 }