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

Method Search

module/system-apikey/iml.go:267–274  ·  view source on GitHub ↗
(ctx context.Context, keyword string)

Source from the content-addressed store, hash-verified

265}
266
267func (i *imlAPIKeyModule) Search(ctx context.Context, keyword string) ([]*system_apikey_dto.Item, error) {
268 list, err := i.apikeyService.Search(ctx, keyword, nil, "create_at desc")
269 if err != nil {
270 return nil, err
271 }
272
273 return utils.SliceToSlice(list, system_apikey_dto.ToAPIKeyItem), nil
274}
275
276func (i *imlAPIKeyModule) SimpleList(ctx context.Context) ([]*system_apikey_dto.SimpleItem, error) {
277 list, err := i.apikeyService.Search(ctx, "", nil, "create_at desc")

Callers

nothing calls this directly

Calls 1

SearchMethod · 0.65

Tested by

no test coverage detected