(ctx context.Context, uuid string)
| 23 | |
| 24 | } |
| 25 | func (s *imlServiceGetSoftDelete[T, E]) Get(ctx context.Context, uuid string) (*T, error) { |
| 26 | where := map[string]interface{}{ |
| 27 | "uuid": uuid, |
| 28 | } |
| 29 | |
| 30 | where[SoftDeleteField] = false |
| 31 | |
| 32 | v, err := s.store.First(ctx, where) |
| 33 | if err != nil { |
| 34 | return nil, err |
| 35 | } |
| 36 | return s.toModelHandler(v), nil |
| 37 | } |
| 38 | func (s *imlServiceGetSoftDelete[T, E]) List(ctx context.Context, uuids ...string) ([]*T, error) { |
| 39 | where := make([]string, 0, 2) |
| 40 | args := make([]interface{}, 0, 2) |
nothing calls this directly
no outgoing calls
no test coverage detected