增加 记录问答题库打开次数
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"knowledge/api/model"
|
||||
"knowledge/api/requests"
|
||||
"knowledge/api/responses"
|
||||
"knowledge/api/service"
|
||||
"knowledge/consts"
|
||||
"knowledge/global"
|
||||
"knowledge/utils"
|
||||
@@ -300,5 +301,10 @@ func (r *Share) GetQuestion(c *gin.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
// 记录问答题库打开次数
|
||||
questionQaService := service.QuestionQaService{}
|
||||
_ = questionQaService.RecordQuestionQaOpenNum(global.Db, questionQa.QaId)
|
||||
|
||||
// 返回
|
||||
responses.OkWithData(g, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user