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