From d8ac88cfb72e3aac3a89c3cfe77774be3024a24c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 11 八月 2023 17:54:43 +0800
Subject: [PATCH] update
---
model/serviceType.go | 26 ++++++++++----------------
1 files changed, 10 insertions(+), 16 deletions(-)
diff --git a/model/serviceType.go b/model/serviceType.go
index 402a9a5..e5f7214 100644
--- a/model/serviceType.go
+++ b/model/serviceType.go
@@ -9,21 +9,21 @@
)
type (
- // ServiceType 鏈嶅姟绫诲瀷
+ // ServiceType 鏈嶅姟鏂瑰紡
ServiceType 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"`
}
- // ServiceTypeSearch 鏈嶅姟绫诲瀷鎼滅储鏉′欢
+ // ServiceTypeSearch 鏈嶅姟鏂瑰紡鎼滅储鏉′欢
ServiceTypeSearch struct {
ServiceType
- Orm *gorm.DB
- QueryClass constvar.ServiceTypeQueryClass
- KeywordType constvar.ServiceTypeKeywordType
- Keyword string
- PageNum int
- PageSize int
+ Orm *gorm.DB
+ QueryClass constvar.ServiceTypeQueryClass
+ KeywordType constvar.ServiceTypeKeywordType
+ Keyword string
+ PageNum int
+ PageSize int
}
)
@@ -130,12 +130,6 @@
if total != 0 {
return nil
}
- records := []*ServiceType{
- {Name: "鐢佃瘽"},
- {Name: "杩滅▼"},
- {Name: "閫佷慨"},
- {Name: "涓婇棬"},
- {Name: "鍏朵粬"},
- }
+ records := []*ServiceType{}
return slf.CreateBatch(records)
}
--
Gitblit v1.8.0