From f04def67f695e69591ccdd73bb339c6f402b477c Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 05 八月 2023 13:36:57 +0800 Subject: [PATCH] update --- model/timeSpent.go | 23 ++++++++--------------- 1 files changed, 8 insertions(+), 15 deletions(-) diff --git a/model/timeSpent.go b/model/timeSpent.go index 1a4a5b0..de29623 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"` } // 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 } ) @@ -130,13 +130,6 @@ if total != 0 { return nil } - records := []*TimeSpent{ - {Name: "1灏忔椂"}, - {Name: "2灏忔椂"}, - {Name: "0.5涓伐浣滄棩"}, - {Name: "1涓伐浣滄棩"}, - {Name: "2涓伐浣滄棩"}, - {Name: "2涓伐浣滄棩浠ヤ笂"}, - } + records := []*TimeSpent{} return slf.CreateBatch(records) } -- Gitblit v1.8.0