(ctx context.Context)
| 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") |
| 278 | if err != nil { |
| 279 | return nil, err |
| 280 | } |
| 281 | |
| 282 | return utils.SliceToSlice(list, system_apikey_dto.ToAPIKeySimpleItem), nil |
| 283 | } |
| 284 | |
| 285 | func (i *imlAPIKeyModule) online(ctx context.Context, client gateway.IClientDriver) error { |
| 286 |