| 57 | } |
| 58 | |
| 59 | func (i imlOverviewService) List(ctx context.Context, serviceIds ...string) ([]*Overview, error) { |
| 60 | w := make(map[string]interface{}) |
| 61 | if len(serviceIds) > 0 { |
| 62 | w = map[string]interface{}{ |
| 63 | "service": serviceIds, |
| 64 | } |
| 65 | } |
| 66 | list, err := i.store.List(ctx, w) |
| 67 | if err != nil { |
| 68 | return nil, err |
| 69 | } |
| 70 | return utils.SliceToSlice(list, FromEntity), nil |
| 71 | } |
| 72 | |
| 73 | func (i imlOverviewService) Map(ctx context.Context, serviceIds ...string) (map[string]*Overview, error) { |
| 74 | list, err := i.List(ctx, serviceIds...) |