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

Method DeleteByProvider

service/ai-key/iml.go:26–32  ·  view source on GitHub ↗
(ctx context.Context, providerId string)

Source from the content-addressed store, hash-verified

24}
25
26func (i *imlAIKeyService) DeleteByProvider(ctx context.Context, providerId string) error {
27 _, err := i.store.DeleteWhere(ctx, map[string]interface{}{"provider": providerId})
28 if err != nil {
29 return err
30 }
31 return nil
32}
33
34func (i *imlAIKeyService) CountMapByProvider(ctx context.Context, keyword string, conditions map[string]interface{}) (map[string]int64, error) {
35 return i.store.CountByGroup(ctx, keyword, conditions, "provider")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected