(ctx context.Context, providerId string)
| 24 | } |
| 25 | |
| 26 | func (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 | |
| 34 | func (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") |
nothing calls this directly
no outgoing calls
no test coverage detected