MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Get

Method Get

service/universally/get-softdelete.go:25–37  ·  view source on GitHub ↗
(ctx context.Context, uuid string)

Source from the content-addressed store, hash-verified

23
24}
25func (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}
38func (s *imlServiceGetSoftDelete[T, E]) List(ctx context.Context, uuids ...string) ([]*T, error) {
39 where := make([]string, 0, 2)
40 args := make([]interface{}, 0, 2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected