wangpengfei
2023-07-26 e0a433e9c31594527a3bf7766c0bfb2cbbceffdb
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, keyword string) ([]*model.Quotation, int) {
   // get contact list
   contacts, err := model.NewQuotationSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll()
   if err != nil {
      return nil, ecode.QuotationListErr
   }
   return contacts, ecode.OK
}