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

Method MySimpleApps

module/service/iml.go:1379–1394  ·  view source on GitHub ↗
(ctx context.Context, keyword string)

Source from the content-addressed store, hash-verified

1377}
1378
1379func (i *imlAppModule) MySimpleApps(ctx context.Context, keyword string) ([]*service_dto.SimpleAppItem, error) {
1380 services, err := i.searchMyApps(ctx, "", keyword)
1381 if err != nil {
1382 return nil, err
1383 }
1384 items := make([]*service_dto.SimpleAppItem, 0, len(services))
1385 for _, p := range services {
1386 items = append(items, &service_dto.SimpleAppItem{
1387 Id: p.Id,
1388 Name: p.Name,
1389 Description: p.Description,
1390 Team: auto.UUID(p.Team),
1391 })
1392 }
1393 return items, nil
1394}
1395
1396func (i *imlAppModule) GetApp(ctx context.Context, appId string) (*service_dto.App, error) {
1397 info, err := i.serviceService.Get(ctx, appId)

Callers

nothing calls this directly

Calls 1

searchMyAppsMethod · 0.95

Tested by

no test coverage detected