From cdb47d41f39a5c600caa41692c9b5b0732944d6a Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期二, 08 八月 2023 11:38:27 +0800
Subject: [PATCH] fix
---
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