zhangqian
2023-08-17 b654a22b6d2e579cf32e1d70f7a8a7791a501e81
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)
}