zhangqian
2023-08-17 b654a22b6d2e579cf32e1d70f7a8a7791a501e81
model/courierCompany.go
@@ -12,18 +12,18 @@
   // CourierCompany 物流公司
   CourierCompany 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"`
   }
   // CourierCompanySearch 物流公司搜索条件
   CourierCompanySearch struct {
      CourierCompany
      Orm *gorm.DB
        QueryClass  constvar.CourierCompanyQueryClass
        KeywordType constvar.CourierCompanyKeywordType
        Keyword     string
        PageNum  int
        PageSize int
      Orm         *gorm.DB
      QueryClass  constvar.CourierCompanyQueryClass
      KeywordType constvar.CourierCompanyKeywordType
      Keyword     string
      PageNum     int
      PageSize    int
   }
)
@@ -135,6 +135,10 @@
   if total != 0 {
      return nil
   }
   records := []*CourierCompany{}
   records := []*CourierCompany{
      {1, "顺丰"},
      {2, "德邦"},
      {3, "中远海运"},
   }
   return slf.CreateBatch(records)
}