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

Function NewGetSoftDelete

service/universally/get-softdelete.go:20–24  ·  view source on GitHub ↗
(store store.ISearchStore[E], toModelHandler func(*E) *T)

Source from the content-addressed store, hash-verified

18}
19
20func NewGetSoftDelete[T any, E any](store store.ISearchStore[E], toModelHandler func(*E) *T) IServiceGet[T] {
21
22 return &imlServiceGetSoftDelete[T, E]{store: store, toModelHandler: toModelHandler}
23
24}
25func (s *imlServiceGetSoftDelete[T, E]) Get(ctx context.Context, uuid string) (*T, error) {
26 where := map[string]interface{}{
27 "uuid": uuid,

Callers 4

OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92
OnCompleteMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected