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.
fix(question): rename question created_at
LinkinStarb361bbb4862d
diff --git a/internal/schema/question_schema.go b/internal/schema/question_schema.goindex 4d4bda23..eca9c03b 100644--- a/internal/schema/question_schema.go+++ b/internal/schema/question_schema.go@@ -219,7 +219,7 @@ type UserQuestionInfo struct {ViewCount int `json:"view_count"`AnswerCount int `json:"answer_count"`CollectionCount int `json:"collection_count"`- CreateTime int `json:"create_time"`+ CreatedAt int64 `json:"created_at"`AcceptedAnswerID string `json:"accepted_answer_id"`Status string `json:"status"`}@@ -253,6 +253,7 @@ const (type QuestionPageResp struct {ID string `json:"id" `+ CreatedAt int64 `json:"created_at"`Title string `json:"title"`UrlTitle string `json:"url_title"`Description string `json:"description"`diff --git a/internal/service/question_common/question.go b/internal/service/question_common/question.goindex deafa5b1..43be1b78 100644--- a/internal/service/question_common/question.go+++ b/internal/service/question_common/question.go@@ -254,6 +254,7 @@ func (qs *QuestionCommon) FormatQuestionsPage(for _, questionInfo := range questionList {t := &schema.QuestionPageResp{ID: questionInfo.ID,+ CreatedAt: questionInfo.CreatedAt.Unix(),Title: questionInfo.Title,UrlTitle: htmltext.UrlTitle(questionInfo.Title),Description: htmltext.FetchExcerpt(questionInfo.ParsedText, "...", 240),