| | |
| | | return ecode.OK |
| | | } |
| | | |
| | | func (QuotationService) GetQuotationList(page, pageSize int, keyword string) ([]*model.Quotation, int) { |
| | | func (QuotationService) GetQuotationList(page, pageSize int, keyword string) ([]*model.Quotation, int64, int) { |
| | | // get contact list |
| | | contacts, err := model.NewQuotationSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll() |
| | | contacts, total, err := model.NewQuotationSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll() |
| | | if err != nil { |
| | | return nil, ecode.QuotationListErr |
| | | return nil, 0, ecode.QuotationListErr |
| | | } |
| | | return contacts, ecode.OK |
| | | return contacts, total, ecode.OK |
| | | } |