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

Method Get

module/catalogue/iml.go:110–121  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

108}
109
110func (i *imlCatalogueModule) Get(ctx context.Context, id string) (*catalogue_dto.Catalogue, error) {
111 info, err := i.catalogueService.Get(ctx, id)
112 if err != nil {
113 return nil, err
114 }
115 return &catalogue_dto.Catalogue{
116 Id: info.Id,
117 Name: info.Name,
118 Parent: info.Parent,
119 Sort: info.Sort,
120 }, nil
121}
122
123func (i *imlCatalogueModule) ExportAll(ctx context.Context) ([]*catalogue_dto.ExportCatalogue, error) {
124 list, err := i.catalogueService.List(ctx)

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected