Documentation ¶
Index ¶
- func DeleteQuestionAnswer(answer_id string, questioner_id string) (sql.Result, error)
- func DeleteQuestionAnswerVote(answer_id string, voter_id string) (sql.Result, error)
- func GetQuestionAnswerByAnswerId(answer_id string) (int, error)
- func GetQuestionAnswers(id string, user_id string) ([]questionModal.QuestionAnswerModal, error)
- func GetQuestionAnswersWithoutId(id string) ([]questionModal.QuestionAnswerModal, error)
- func GetUserQuestionAnswerVote(answer_id string, voter_id string) (question_vote_data questionModal.AnswerVoteModal, err error)
- func NewQuestionAnswer(user_id string, content string, question_id string) (questionModal.QuestionAnswerModal, error)
- func NewQuestionAnswerVote(answer_id string, voter_id string, vote int) (questionModal.AnswerVoteModal, error)
- func UpdateQuestionAnswerVote(answer_id string, voter_id string, vote int) (sql.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteQuestionAnswer ¶
func GetQuestionAnswers ¶
func GetQuestionAnswers(id string, user_id string) ([]questionModal.QuestionAnswerModal, error)
func GetQuestionAnswersWithoutId ¶
func GetQuestionAnswersWithoutId(id string) ([]questionModal.QuestionAnswerModal, error)
func GetUserQuestionAnswerVote ¶
func GetUserQuestionAnswerVote(answer_id string, voter_id string) (question_vote_data questionModal.AnswerVoteModal, err error)
func NewQuestionAnswer ¶
func NewQuestionAnswer(user_id string, content string, question_id string) (questionModal.QuestionAnswerModal, error)
func NewQuestionAnswerVote ¶
func NewQuestionAnswerVote(answer_id string, voter_id string, vote int) (questionModal.AnswerVoteModal, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.