mirror of https://gitee.com/answerdev/answer.git
update invite user
This commit is contained in:
parent
c777fec109
commit
f5bb3ff6e5
|
@ -3654,7 +3654,7 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/question/invite_user": {
|
||||
"/answer/api/v1/question/invite": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
@ -3690,9 +3690,7 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/question/inviter_user": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
|
|
|
@ -3642,7 +3642,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/question/invite_user": {
|
||||
"/answer/api/v1/question/invite": {
|
||||
"get": {
|
||||
"security": [
|
||||
{
|
||||
|
@ -3678,9 +3678,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/question/inviter_user": {
|
||||
"put": {
|
||||
"security": [
|
||||
{
|
||||
|
|
|
@ -4492,7 +4492,7 @@ paths:
|
|||
summary: get question details
|
||||
tags:
|
||||
- Question
|
||||
/answer/api/v1/question/invite_user:
|
||||
/answer/api/v1/question/invite:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
|
@ -4516,7 +4516,6 @@ paths:
|
|||
summary: get question invite user info
|
||||
tags:
|
||||
- Question
|
||||
/answer/api/v1/question/inviter_user:
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
|
|
|
@ -230,7 +230,7 @@ func (qc *QuestionController) GetQuestion(ctx *gin.Context) {
|
|||
// @Produce json
|
||||
// @Param id query string true "Question ID" default(1)
|
||||
// @Success 200 {string} string ""
|
||||
// @Router /answer/api/v1/question/invite_user [get]
|
||||
// @Router /answer/api/v1/question/invite [get]
|
||||
func (qc *QuestionController) GetQuestionInviteUserInfo(ctx *gin.Context) {
|
||||
id := ctx.Query("id")
|
||||
id = uid.DeShortID(id)
|
||||
|
@ -547,7 +547,7 @@ func (qc *QuestionController) UpdateQuestion(ctx *gin.Context) {
|
|||
// @Security ApiKeyAuth
|
||||
// @Param data body schema.QuestionUpdateInviteUser true "question"
|
||||
// @Success 200 {object} handler.RespBody
|
||||
// @Router /answer/api/v1/question/inviter_user [put]
|
||||
// @Router /answer/api/v1/question/invite [put]
|
||||
func (qc *QuestionController) UpdateQuestionInviteUser(ctx *gin.Context) {
|
||||
req := &schema.QuestionUpdateInviteUser{}
|
||||
errFields := handler.BindAndCheckReturnErr(ctx, req)
|
||||
|
|
|
@ -130,7 +130,7 @@ func (a *AnswerAPIRouter) RegisterUnAuthAnswerAPIRouter(r *gin.RouterGroup) {
|
|||
|
||||
//question
|
||||
r.GET("/question/info", a.questionController.GetQuestion)
|
||||
r.GET("/question/invite_user", a.questionController.GetQuestionInviteUserInfo)
|
||||
r.GET("/question/invite", a.questionController.GetQuestionInviteUserInfo)
|
||||
r.GET("/question/page", a.questionController.QuestionPage)
|
||||
r.GET("/question/similar/tag", a.questionController.SimilarQuestion)
|
||||
r.GET("/personal/qa/top", a.questionController.UserTop)
|
||||
|
@ -195,7 +195,7 @@ func (a *AnswerAPIRouter) RegisterAnswerAPIRouter(r *gin.RouterGroup) {
|
|||
r.POST("/question", a.questionController.AddQuestion)
|
||||
r.POST("/question/answer", a.questionController.AddQuestionByAnswer)
|
||||
r.PUT("/question", a.questionController.UpdateQuestion)
|
||||
r.PUT("/question/inviter_user", a.questionController.UpdateQuestionInviteUser)
|
||||
r.PUT("/question/invite", a.questionController.UpdateQuestionInviteUser)
|
||||
r.DELETE("/question", a.questionController.RemoveQuestion)
|
||||
r.PUT("/question/status", a.questionController.CloseQuestion)
|
||||
r.PUT("/question/operation", a.questionController.OperationQuestion)
|
||||
|
|
Loading…
Reference in New Issue