(ctx context.Context, uuids ...string)
| 67 | } |
| 68 | |
| 69 | func (i *imlCommitService[T]) List(ctx context.Context, uuids ...string) ([]*Commit[T], error) { |
| 70 | list, err := i.store.List(ctx, uuids...) |
| 71 | if err != nil { |
| 72 | return nil, err |
| 73 | } |
| 74 | |
| 75 | return utils.SliceToSlice(list, newCommit[T]), nil |
| 76 | |
| 77 | } |
| 78 | |
| 79 | func (i *imlCommitService[T]) ListLatest(ctx context.Context, key string, target ...string) ([]*Commit[T], error) { |
| 80 | list, err := i.store.Latest(ctx, key, target...) |