(ctx context.Context, id string)
| 257 | } |
| 258 | |
| 259 | func (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 | |
| 267 | func (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") |