quiz count
This commit is contained in:
@ -15,6 +15,7 @@ type QuizPaper struct {
|
||||
Content string `json:"content" db:"content" example:"퀴즈 시트 설명" gorm:"column:content;size:512;"`
|
||||
Category string `json:"category" db:"category" example:"파이썬기본" gorm:"column:category;size:255;"`
|
||||
Tag datatypes.JSON `json:"tag" db:"tag" gorm:"column:tag;"`
|
||||
QuizCount int `json:"quiz_count" db:"quiz_count" example:"5" gorm:"column:quiz_count;"`
|
||||
Status string `json:"status" example:"on" gorm:"column:status;size:10;index;"`
|
||||
UpdatedAt time.Time `json:"-" gorm:"column:updated_at;type:DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index;->:false"`
|
||||
CreatedAt time.Time `json:"created_at" db:"created_at" example:"2023-11-10T13:10:00+09:00" gorm:"column:created_at;type:DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;index;"`
|
||||
@ -42,6 +43,7 @@ type QuizPaperResponse struct {
|
||||
Content string `json:"content" example:"퀴즈 시트 설명"`
|
||||
Category string `json:"category" example:"파이썬기본"`
|
||||
Tag []string `json:"tag" example:"Python,AI,Robot,파이썬"`
|
||||
QuizCount int `json:"quiz_count" example:"5"`
|
||||
Status string `json:"status" example:"on"`
|
||||
CreatedAt time.Time `json:"created_at" example:"2023-11-10T13:10:00+09:00"`
|
||||
}
|
||||
|
@ -11,8 +11,9 @@ type UserQuizPaper struct {
|
||||
QuizPaperID int64 `json:"quiz_paper_id" db:"quiz_paper_id" example:"1000001" gorm:"column:quiz_paper_id;index;"`
|
||||
UserID int64 `json:"user_id" db:"user_id" example:"1000002" gorm:"column:user_id;index;"`
|
||||
UserScore float32 `json:"user_score" db:"user_score" example:"5" gorm:"column:user_score;"`
|
||||
TotalScore float32 `json:"total_score" db:"total_score" example:"100" gorm:"column:total_score;"`
|
||||
TotalScore float32 `json:"total_score" db:"total_score" example:"5" gorm:"column:total_score;"`
|
||||
Status string `json:"status" example:"wating" gorm:"column:status;size:10;index;"`
|
||||
QuizCount int `json:"quiz_count" db:"quiz_count" example:"5" gorm:"column:quiz_count;"`
|
||||
StartAt *time.Time `json:"start_at" gorm:"column:start_at;index;"`
|
||||
DoneAt *time.Time `json:"done_at" gorm:"column:done_at;index;"`
|
||||
UpdatedAt time.Time `json:"-" gorm:"column:updated_at;type:DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index;->:false"`
|
||||
@ -39,6 +40,7 @@ type UserQuizPaperResponse struct {
|
||||
LastName string `json:"last_name" db:"last_name" example:"홍"`
|
||||
UserScore float32 `json:"user_score" db:"user_score" example:"5"`
|
||||
TotalScore float32 `json:"total_score" db:"total_score" example:"100"`
|
||||
QuizCount int `json:"quiz_count" db:"quiz_count" example:"5"`
|
||||
Status string `json:"status" example:"wating"`
|
||||
Category string `json:"category" example:"파이썬기본"`
|
||||
Title string `json:"title" example:"출력 Print"`
|
||||
|
Reference in New Issue
Block a user