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

Method SimpleApps

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

Source from the content-addressed store, hash-verified

1360}
1361
1362func (i *imlAppModule) SimpleApps(ctx context.Context, keyword string) ([]*service_dto.SimpleAppItem, error) {
1363 w := make(map[string]interface{})
1364 w["as_app"] = true
1365 services, err := i.serviceService.Search(ctx, keyword, w)
1366 if err != nil {
1367 return nil, err
1368 }
1369 return utils.SliceToSlice(services, func(p *service.Service) *service_dto.SimpleAppItem {
1370 return &service_dto.SimpleAppItem{
1371 Id: p.Id,
1372 Name: p.Name,
1373 Description: p.Description,
1374 Team: auto.UUID(p.Team),
1375 }
1376 }), nil
1377}
1378
1379func (i *imlAppModule) MySimpleApps(ctx context.Context, keyword string) ([]*service_dto.SimpleAppItem, error) {
1380 services, err := i.searchMyApps(ctx, "", keyword)

Callers

nothing calls this directly

Calls 1

SearchMethod · 0.65

Tested by

no test coverage detected