Documentation ¶
Index ¶
- type IQuestions
- type Question
- func (r *Question) CreateQuestion(ctx context.Context, req entity.Question) (err error)
- func (r *Question) DeleteQuestion(ctx context.Context, req entity.Question) (err error)
- func (r *Question) FindAllQuestion(ctx context.Context, req entity.Question) (res []entity.Question, err error)
- func (r *Question) FindQuestion(ctx context.Context, req entity.Question) (res entity.Question, err error)
- func (r *Question) UpdateQuestion(ctx context.Context, req entity.Question) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IQuestions ¶
type IQuestions interface { FindAllQuestion(ctx context.Context, req entity.Question) (res []entity.Question, err error) FindQuestion(ctx context.Context, req entity.Question) (res entity.Question, err error) CreateQuestion(ctx context.Context, req entity.Question) (err error) UpdateQuestion(ctx context.Context, req entity.Question) (err error) DeleteQuestion(ctx context.Context, req entity.Question) (err error) }
type Question ¶
type Question struct {
// contains filtered or unexported fields
}
func NewQuestion ¶
func NewQuestion() *Question
func (*Question) CreateQuestion ¶
func (*Question) DeleteQuestion ¶
func (*Question) FindAllQuestion ¶
func (*Question) FindQuestion ¶
Click to show internal directories.
Click to hide internal directories.