Documentation ¶
Index ¶
- func CreateQuestion(validator model.QuestionValidator) error
- func GetQuestion(productID int64) (*model.Question, error)
- func GetQuestions(page int) []model.Question
- func GetQuestionsByIds(ids []int) []model.Question
- func UpdateAnswer(validator model.AnswerValidator) error
- func UpvoteQuestion(validator model.QuestionUpvoteValidator) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateQuestion ¶
func CreateQuestion(validator model.QuestionValidator) error
func GetQuestion ¶
func GetQuestions ¶
func GetQuestions(page int) []model.Question
func UpdateAnswer ¶
func UpdateAnswer(validator model.AnswerValidator) error
func UpvoteQuestion ¶
func UpvoteQuestion(validator model.QuestionUpvoteValidator) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.