wangpengfei
2023-08-14 f84d9c46574a2cd663105859035bc17891270923
service/quotation.go
@@ -29,15 +29,6 @@
   return ecode.OK
}
func (QuotationService) GetQuotationList() ([]*model.Quotation, int) {
   list, err := model.NewQuotationSearch().FindAll()
   if err != nil {
      return nil, ecode.QuotationListErr
   }
   return list, ecode.OK
}
func (QuotationService) UpdateQuotation(quotation *model.Quotation) int {
   // check quotation exist
   _, err := model.NewQuotationSearch().SetId(quotation.Id).Find()
@@ -52,3 +43,12 @@
   return ecode.OK
}
func (QuotationService) GetQuotationList(page, pageSize int, data map[string]interface{}) ([]*model.Quotation, int64, int) {
   // get contact list
   contacts, total, err := model.NewQuotationSearch().SetPage(page, pageSize).SetSearchMap(data).FindAll()
   if err != nil {
      return nil, 0, ecode.QuotationListErr
   }
   return contacts, total, ecode.OK
}