(ctx context.Context, dr domain.RecentActivity)
| 31 | } |
| 32 | |
| 33 | func (a *activityRepository) SetRecentActivity(ctx context.Context, dr domain.RecentActivity) error { |
| 34 | err := a.dao.SetRecentActivity(ctx, fromDomainActivity(dr)) |
| 35 | if err != nil { |
| 36 | return err |
| 37 | } |
| 38 | return nil |
| 39 | } |
| 40 | |
| 41 | // 将领域层对象转为dao层对象 |
| 42 | func fromDomainActivity(dr domain.RecentActivity) dao.RecentActivity { |
nothing calls this directly
no test coverage detected