MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / MySimple

Method MySimple

module/service/iml.go:533–549  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

531}
532
533func (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
551func (i *imlServiceModule) Get(ctx context.Context, id string) (*service_dto.Service, error) {
552 now := time.Now()

Callers

nothing calls this directly

Calls 1

searchMyServicesMethod · 0.95

Tested by

no test coverage detected