Documentation ¶
Index ¶
- type QuestionInterface
- type QuestionRepository
- func (qt *QuestionRepository) Create(newQuestion entities.Question) (entities.Question, error)
- func (qt *QuestionRepository) GetQuestionsByUserId(userId uint64, offset int, limit int) ([]entities.GetCommonQuestionsResponse, error)
- func (qt *QuestionRepository) GetRandom(userId uint64, categoryId *uint64) ([]entities.GetCommonQuestionsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuestionInterface ¶
type QuestionRepository ¶
type QuestionRepository struct {
// contains filtered or unexported fields
}
func NewQuestionsRepo ¶
func NewQuestionsRepo(db *gorm.DB) *QuestionRepository
func (*QuestionRepository) GetQuestionsByUserId ¶
func (qt *QuestionRepository) GetQuestionsByUserId(userId uint64, offset int, limit int) ([]entities.GetCommonQuestionsResponse, error)
func (*QuestionRepository) GetRandom ¶
func (qt *QuestionRepository) GetRandom(userId uint64, categoryId *uint64) ([]entities.GetCommonQuestionsResponse, error)
Click to show internal directories.
Click to hide internal directories.