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

Method Get

module/system-apikey/iml.go:259–265  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

257}
258
259func (i *imlAPIKeyModule) Get(ctx context.Context, id string) (*system_apikey_dto.APIKey, error) {
260 info, err := i.apikeyService.Get(ctx, id)
261 if err != nil {
262 return nil, err
263 }
264 return system_apikey_dto.ToAPIKey(info), nil
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")

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected