Skip to content

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.

add Operation_Time

aichy45e056d26bfc
diff --git a/internal/schema/question_schema.go b/internal/schema/question_schema.go
index 202aeaa2..139684bf 100644
--- a/internal/schema/question_schema.go
+++ b/internal/schema/question_schema.go
@@ -111,6 +111,7 @@ type Operation struct {
Operation_Type string `json:"operation_type"`
Operation_Description string `json:"operation_description"`
Operation_Msg string `json:"operation_msg"`
+ Operation_Time int64 `json:"operation_time"`
}
type GetCloseTypeResp struct {
diff --git a/internal/service/question_common/question.go b/internal/service/question_common/question.go
index 80da1c6b..eb9d9090 100644
--- a/internal/service/question_common/question.go
+++ b/internal/service/question_common/question.go
@@ -164,6 +164,7 @@ func (qs *QuestionCommon) Info(ctx context.Context, questionId string, loginUser
operation.Operation_Type = closeinfo.Name
operation.Operation_Description = closeinfo.Description
operation.Operation_Msg = closemsg.CloseMsg
+ operation.Operation_Time = metainfo.CreatedAt.Unix()
showinfo.Operation = operation
}