From f5e2c16e70ef2fa62ba2daa1addefe7720dadf13 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期四, 17 八月 2023 20:06:58 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- model/serviceType.go | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/model/serviceType.go b/model/serviceType.go index e5f7214..4602418 100644 --- a/model/serviceType.go +++ b/model/serviceType.go @@ -12,18 +12,18 @@ // 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 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,6 +130,12 @@ if total != 0 { return nil } - records := []*ServiceType{} + records := []*ServiceType{ + {1, "鐢佃瘽"}, + {2, "杩滅▼"}, + {3, "閫佷慨"}, + {4, "涓婇棬"}, + {5, "鍏朵粬"}, + } return slf.CreateBatch(records) } -- Gitblit v1.8.0