wangpengfei
2023-07-26 e0a433e9c31594527a3bf7766c0bfb2cbbceffdb
service/serviceFollowup.go
@@ -29,15 +29,6 @@
   return ecode.OK
}
func (FollowupService) GetServiceFollowupList() ([]*model.ServiceFollowup, int) {
   list, err := model.NewServiceFollowupSearch().FindAll()
   if err != nil {
      return nil, ecode.ServiceFollowupListErr
   }
   return list, ecode.OK
}
func (FollowupService) UpdateServiceFollowup(serviceFollowup *model.ServiceFollowup) int {
   // check serviceFollowup exist
   _, err := model.NewServiceFollowupSearch().SetId(serviceFollowup.Id).Find()
@@ -52,3 +43,12 @@
   return ecode.OK
}
func (FollowupService) GetServiceFollowupList(page, pageSize int, keyword string) ([]*model.ServiceFollowup, int) {
   // get contact list
   contacts, err := model.NewServiceFollowupSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll()
   if err != nil {
      return nil, ecode.ServiceFollowupListErr
   }
   return contacts, ecode.OK
}