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

Method Search

controller/catalogue/iml.go:44–54  ·  view source on GitHub ↗
(ctx *gin.Context, keyword string)

Source from the content-addressed store, hash-verified

42}
43
44func (i *imlCatalogueController) Search(ctx *gin.Context, keyword string) ([]*catalogue_dto.Item, []*tag_dto.Item, error) {
45 catalogues, err := i.catalogueModule.Search(ctx, keyword)
46 if err != nil {
47 return nil, nil, err
48 }
49 tags, err := i.tagModule.Search(ctx, keyword)
50 if err != nil {
51 return nil, nil, err
52 }
53 return catalogues, tags, nil
54}
55
56func (i *imlCatalogueController) Create(ctx *gin.Context, input *catalogue_dto.CreateCatalogue) error {
57 return i.catalogueModule.Create(ctx, input)

Callers

nothing calls this directly

Calls 1

SearchMethod · 0.65

Tested by

no test coverage detected