add Operation_Time

This commit is contained in:
aichy 2022-09-30 10:39:29 +08:00
parent 26f605a649
commit 45e056d26b
2 changed files with 2 additions and 0 deletions

View File

@ -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 {

View File

@ -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
}