(ctx context.Context, keyword string)
| 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") |
| 269 | if err != nil { |
| 270 | return nil, err |
| 271 | } |
| 272 | |
| 273 | return utils.SliceToSlice(list, system_apikey_dto.ToAPIKeyItem), nil |
| 274 | } |
| 275 | |
| 276 | func (i *imlAPIKeyModule) SimpleList(ctx context.Context) ([]*system_apikey_dto.SimpleItem, error) { |
| 277 | list, err := i.apikeyService.Search(ctx, "", nil, "create_at desc") |