| | |
| | | return ecode.OK |
| | | } |
| | | |
| | | func (FollowRecordService) GetFollowRecordList(page, pageSize int, keyword string) ([]*model.FollowRecord, int) { |
| | | func (FollowRecordService) GetFollowRecordList(page, pageSize int, keyword string) ([]*model.FollowRecord, int64, int) { |
| | | // get contact list |
| | | contacts, err := model.NewFollowRecordSearch().SetKeyword(keyword).SetPage(page, pageSize).Find() |
| | | contacts, total, err := model.NewFollowRecordSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll() |
| | | if err != nil { |
| | | return nil, ecode.FollowRecordListErr |
| | | return nil, 0, ecode.FollowRecordListErr |
| | | } |
| | | return contacts, ecode.OK |
| | | } |
| | | return contacts, total, ecode.OK |
| | | } |