| 1360 | } |
| 1361 | |
| 1362 | func (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 | |
| 1379 | func (i *imlAppModule) MySimpleApps(ctx context.Context, keyword string) ([]*service_dto.SimpleAppItem, error) { |
| 1380 | services, err := i.searchMyApps(ctx, "", keyword) |