A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
update AnswerAddReq
aichy126fe44d054c36e
diff --git a/internal/schema/answer_schema.go b/internal/schema/answer_schema.goindex 87669d49..f89f54f0 100644--- a/internal/schema/answer_schema.go+++ b/internal/schema/answer_schema.go@@ -20,10 +20,10 @@ const ()type AnswerAddReq struct {- QuestionID string `json:"question_id" ` // question_id- Content string `validate:"required,gte=6,lte=65535" json:"content" ` // content- HTML string `json:"html" ` // html- UserID string `json:"-" ` // user_id+ QuestionID string `json:"question_id" ` // question_id+ Content string `validate:"required,notblank,gte=6,lte=65535" json:"content" ` // content+ HTML string `json:"html" ` // html+ UserID string `json:"-" ` // user_id}func (req *AnswerAddReq) Check() (errFields []*validator.FormErrorField, err error) {