model/serviceType.go
@@ -9,13 +9,13 @@ ) type ( // ServiceType 服务类型 // ServiceType 服务方式 ServiceType struct { Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` Name string `json:"name" gorm:"column:name"` } // ServiceTypeSearch 服务类型搜索条件 // ServiceTypeSearch 服务方式搜索条件 ServiceTypeSearch struct { ServiceType Orm *gorm.DB @@ -130,12 +130,6 @@ if total != 0 { return nil } records := []*ServiceType{ {Name: "电话"}, {Name: "远程"}, {Name: "送修"}, {Name: "上门"}, {Name: "其他"}, } records := []*ServiceType{} return slf.CreateBatch(records) }