| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package card |
||
| 2 | |||
| 3 | import ( |
||
| 4 | "context" |
||
| 5 | |||
| 6 | "github.com/memnix/memnix-rest/domain" |
||
| 7 | ) |
||
| 8 | |||
| 9 | type UseCase struct { |
||
| 10 | IRepository |
||
| 11 | IRedisRepository |
||
| 12 | } |
||
| 13 | |||
| 14 | func NewUseCase(repo IRepository, redis IRedisRepository) IUseCase { |
||
| 15 | return &UseCase{IRepository: repo, IRedisRepository: redis} |
||
| 16 | } |
||
| 17 | |||
| 18 | func (*UseCase) GetByID(_ context.Context, _ uint) (domain.Card, error) { |
||
| 19 | return domain.Card{}, nil |
||
| 20 | } |
||
| 21 |