(ctx context.Context, providerId string)
| 97 | } |
| 98 | |
| 99 | func (i *imlAIKeyService) KeysByProvider(ctx context.Context, providerId string) ([]*Key, error) { |
| 100 | list, err := i.store.List(ctx, map[string]interface{}{"provider": providerId}) |
| 101 | if err != nil { |
| 102 | return nil, err |
| 103 | } |
| 104 | var result []*Key |
| 105 | for _, item := range list { |
| 106 | result = append(result, FromEntity(item)) |
| 107 | } |
| 108 | return result, nil |
| 109 | } |
| 110 | |
| 111 | func (i *imlAIKeyService) SortBefore(ctx context.Context, provider string, originID string, targetID string) ([]*Key, error) { |
| 112 | originKey, err := i.store.GetByUUID(ctx, originID) |
nothing calls this directly
no test coverage detected