(ctx context.Context)
| 531 | } |
| 532 | |
| 533 | func (i *imlServiceModule) MySimple(ctx context.Context) ([]*service_dto.SimpleServiceItem, error) { |
| 534 | services, err := i.searchMyServices(ctx, "", "") |
| 535 | if err != nil { |
| 536 | return nil, err |
| 537 | } |
| 538 | |
| 539 | items := make([]*service_dto.SimpleServiceItem, 0, len(services)) |
| 540 | for _, p := range services { |
| 541 | items = append(items, &service_dto.SimpleServiceItem{ |
| 542 | Id: p.Id, |
| 543 | Name: p.Name, |
| 544 | Description: p.Description, |
| 545 | Team: auto.UUID(p.Team), |
| 546 | }) |
| 547 | } |
| 548 | return items, nil |
| 549 | } |
| 550 | |
| 551 | func (i *imlServiceModule) Get(ctx context.Context, id string) (*service_dto.Service, error) { |
| 552 | now := time.Now() |
nothing calls this directly
no test coverage detected