This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
2021-02-28 16:54:40 +00:00
|
|
|
package question
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-09-20 16:46:47 +00:00
|
|
|
"gitea.dwysokinski.me/zdam-egzamin-zawodowy/backend/internal/model"
|
2021-02-28 16:54:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Usecase interface {
|
2021-07-14 04:58:10 +00:00
|
|
|
Store(ctx context.Context, input *model.QuestionInput) (*model.Question, error)
|
|
|
|
UpdateOneByID(ctx context.Context, id int, input *model.QuestionInput) (*model.Question, error)
|
|
|
|
Delete(ctx context.Context, f *model.QuestionFilter) ([]*model.Question, error)
|
|
|
|
Fetch(ctx context.Context, cfg *FetchConfig) ([]*model.Question, int, error)
|
|
|
|
GetByID(ctx context.Context, id int) (*model.Question, error)
|
|
|
|
GenerateTest(ctx context.Context, cfg *GenerateTestConfig) ([]*model.Question, error)
|
2021-02-28 16:54:40 +00:00
|
|
|
}
|