From a18a2c98ed758d08cbbe102bf5225c5a4cd001c7 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 10 八月 2023 19:32:02 +0800 Subject: [PATCH] fix --- model/timeSpent.go | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/model/timeSpent.go b/model/timeSpent.go index de29623..6243445 100644 --- a/model/timeSpent.go +++ b/model/timeSpent.go @@ -12,18 +12,18 @@ // TimeSpent 鑺辫垂鏃堕棿 TimeSpent struct { Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` - Name string `json:"name" gorm:"column:name"` + Name string `json:"name" gorm:"column:name;type:varchar(255);not null;default:'';comment:鍚嶇О"` } // TimeSpentSearch 鑺辫垂鏃堕棿鎼滅储鏉′欢 TimeSpentSearch struct { TimeSpent - Orm *gorm.DB - QueryClass constvar.TimeSpentQueryClass - KeywordType constvar.TimeSpentKeywordType - Keyword string - PageNum int - PageSize int + Orm *gorm.DB + QueryClass constvar.TimeSpentQueryClass + KeywordType constvar.TimeSpentKeywordType + Keyword string + PageNum int + PageSize int } ) -- Gitblit v1.8.0