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/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