Documentation ¶
Index ¶
- type Config
- type Usecase
- func (ucase *Usecase) Delete(ctx context.Context, f *model.QuestionFilter) ([]*model.Question, error)
- func (ucase *Usecase) Fetch(ctx context.Context, cfg *question.FetchConfig) ([]*model.Question, int, error)
- func (ucase *Usecase) GenerateTest(ctx context.Context, cfg *question.GenerateTestConfig) ([]*model.Question, error)
- func (ucase *Usecase) GetByID(ctx context.Context, id int) (*model.Question, error)
- func (ucase *Usecase) Store(ctx context.Context, input *model.QuestionInput) (*model.Question, error)
- func (ucase *Usecase) UpdateOneByID(ctx context.Context, id int, input *model.QuestionInput) (*model.Question, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
QuestionRepository question.Repository
}
type Usecase ¶ added in v1.0.2
type Usecase struct {
// contains filtered or unexported fields
}
func (*Usecase) GenerateTest ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.