(s store.ISearchStore[E])
| 27 | } |
| 28 | |
| 29 | func NewSoftDelete[E any](s store.ISearchStore[E]) IServiceDelete { |
| 30 | assert(new(E)) |
| 31 | return &imlServiceSoftDelete[E]{store: s} |
| 32 | } |
| 33 | |
| 34 | func (p *imlServiceDelete[E]) Delete(ctx context.Context, uuid string) error { |
| 35 | return p.store.Transaction(ctx, func(ctx context.Context) error { |