(ctx context.Context, uuids ...string)
| 19 | } |
| 20 | |
| 21 | func (i *imlCommitWithKeyService[T]) List(ctx context.Context, uuids ...string) ([]*Commit[T], error) { |
| 22 | |
| 23 | list, err := i.store.List(ctx, uuids...) |
| 24 | if err != nil { |
| 25 | return nil, err |
| 26 | } |
| 27 | return utils.SliceToSlice(list, newCommit[T]), nil |
| 28 | } |
| 29 | |
| 30 | func (i *imlCommitWithKeyService[T]) ListLatest(ctx context.Context, target ...string) ([]*Commit[T], error) { |
| 31 | list, err := i.store.Latest(ctx, target...) |