fix
wangpengfei
2023-07-25 da23babe80de0d32e736e8777430ddfbf185373a
service/contact.go
@@ -48,14 +48,6 @@
   return ecode.OK
}
func (ContactService) GetContactList() ([]*model.ContactDetail, int) {
   // get contact list
   contacts, err := model.NewContactSearch(nil).FindAll()
   if err != nil {
      return nil, ecode.ContactListErr
   }
   return contacts, ecode.OK
}
func (ContactService) UpdateContact(contact *model.Contact) int {
   // check contact exist
@@ -125,3 +117,12 @@
   return ecode.OK
}
func (ContactService) GetContactList(page, pageSize int, keyword string) ([]*model.ContactDetail, int) {
   // get contact list
   contacts, err := model.NewContactSearch(nil).SetKeyword(keyword).SetPage(page, pageSize).FindAll()
   if err != nil {
      return nil, ecode.ContactListErr
   }
   return contacts, ecode.OK
}