(ctx context.Context, id string)
| 108 | } |
| 109 | |
| 110 | func (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 | |
| 123 | func (i *imlCatalogueModule) ExportAll(ctx context.Context) ([]*catalogue_dto.ExportCatalogue, error) { |
| 124 | list, err := i.catalogueService.List(ctx) |