wangpengfei
2023-08-02 b4201a0054369a8cd89e940947fd6f1a89f357c2
service/masterOrder.go
@@ -29,15 +29,6 @@
   return ecode.OK
}
func (MasterOrderService) GetMasterOrderList() ([]*model.MasterOrder, int) {
   list, err := model.NewMasterOrderSearch().FindAll()
   if err != nil {
      return nil, ecode.MasterOrderListErr
   }
   return list, ecode.OK
}
func (MasterOrderService) UpdateMasterOrder(masterOrder *model.MasterOrder) int {
   // check masterOrder exist
   _, err := model.NewMasterOrderSearch().SetId(masterOrder.Id).Find()
@@ -52,3 +43,12 @@
   return ecode.OK
}
func (MasterOrderService) GetMasterOrderList(page, pageSize int, keyword string) ([]*model.MasterOrder, int64, int) {
   // get contact list
   contacts, total, err := model.NewMasterOrderSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll()
   if err != nil {
      return nil, 0, ecode.MasterOrderListErr
   }
   return contacts, total, ecode.OK
}