(dao dao.ActivityDAO)
| 17 | } |
| 18 | |
| 19 | func NewActivityRepository(dao dao.ActivityDAO) ActivityRepository { |
| 20 | return &activityRepository{ |
| 21 | dao: dao, |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | func (a *activityRepository) GetRecentActivity(ctx context.Context) ([]domain.RecentActivity, error) { |
| 26 | activity, err := a.dao.GetRecentActivity(ctx) |