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.
feat(question): add avatar field to question operator
LinkinStars15a9be6e2fb2
diff --git a/internal/schema/question_schema.go b/internal/schema/question_schema.goindex 45de312e..94c26798 100644--- a/internal/schema/question_schema.go+++ b/internal/schema/question_schema.go@@ -440,6 +440,7 @@ type QuestionPageRespOperator struct {Rank int `json:"rank"`DisplayName string `json:"display_name"`Status string `json:"status"`+ Avatar string `json:"avatar"`}type AdminQuestionPageReq struct {diff --git a/internal/service/question_common/question.go b/internal/service/question_common/question.goindex 866f0486..0ca1e616 100644--- a/internal/service/question_common/question.go+++ b/internal/service/question_common/question.go@@ -23,11 +23,12 @@ import ("context""encoding/json""fmt"- "github.com/apache/answer/internal/service/siteinfo_common""math""strings""time"+ "github.com/apache/answer/internal/service/siteinfo_common"+"github.com/apache/answer/internal/base/constant""github.com/apache/answer/internal/base/data""github.com/apache/answer/internal/base/handler"@@ -456,6 +457,7 @@ func (qs *QuestionCommon) FormatQuestionsPage(item.Operator.Username = userInfo.Usernameitem.Operator.Rank = userInfo.Rankitem.Operator.Status = userInfo.Status+ item.Operator.Avatar = userInfo.Avatar}}}