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 (u *UseCase) GetByID(ctx context.Context, id uint) (domain.Card, error) { |
||
19 | return domain.Card{}, nil |
||
20 | } |
||
21 |