| 1122 | } |
| 1123 | |
| 1124 | func (i *imlAppModule) ExportAll(ctx context.Context) ([]*service_dto.ExportApp, error) { |
| 1125 | apps, err := i.serviceService.AppList(ctx) |
| 1126 | if err != nil { |
| 1127 | return nil, err |
| 1128 | } |
| 1129 | return utils.SliceToSlice(apps, func(p *service.Service) *service_dto.ExportApp { |
| 1130 | return &service_dto.ExportApp{ |
| 1131 | Id: p.Id, |
| 1132 | Name: p.Name, |
| 1133 | Description: p.Description, |
| 1134 | Team: p.Team, |
| 1135 | } |
| 1136 | }), nil |
| 1137 | } |
| 1138 | |
| 1139 | func (i *imlAppModule) Search(ctx context.Context, teamId string, keyword string) ([]*service_dto.AppItem, error) { |
| 1140 | var services []*service.Service |