Skip to content

Commit

Permalink
Merge pull request #36 from decert-me/fix/open-quest-time
Browse files Browse the repository at this point in the history
Fix 评分的提交时间错误
  • Loading branch information
0xdwong authored Aug 2, 2024
2 parents c7c33e1 + d70fd27 commit de7280a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/internal/app/model/response/challenge.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type GetUserOpenQuestDetailListV2 struct {
OpenQuestReviewStatus uint8 `gorm:"column:open_quest_review_status;default:0;comment:评阅开放题状态 1 未审核 2 已审核" json:"open_quest_review_status" form:"open_quest_review_status"` // // 评阅开放题状态 1 未审核 2 已审核
OpenQuestReviewTime string `gorm:"column:open_quest_review_time;comment:评阅开放题时间" json:"open_quest_review_time" form:"open_quest_review_time"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
Index int `gorm:"column:index" json:"index"`
Title string `gorm:"column:title" json:"title"`
Answer datatypes.JSON `gorm:"column:answer" json:"answer"`
Expand Down
3 changes: 2 additions & 1 deletion backend/internal/app/service/backend/challenge.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ func GetUserOpenQuestDetailListV2(r request.GetUserOpenQuestDetailListRequest) (
ELSE 1
END AS open_quest_review_status,
json_element->>'open_quest_review_time' AS open_quest_review_time,
user_open_quest.updated_at,
user_open_quest.updated_at as updated_at,
user_open_quest.created_at as created_at,
(idx::int - 1) AS index,
json_element->>'type' AS type,
json_element->>'value' AS value,
Expand Down

0 comments on commit de7280a

Please sign in to comment.