MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / ExportAll

Method ExportAll

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

Source from the content-addressed store, hash-verified

1122}
1123
1124func (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
1139func (i *imlAppModule) Search(ctx context.Context, teamId string, keyword string) ([]*service_dto.AppItem, error) {
1140 var services []*service.Service

Callers

nothing calls this directly

Calls 1

AppListMethod · 0.65

Tested by

no test coverage detected