QuizPaper created_at
This commit is contained in:
parent
c31a16843d
commit
d9ecd65d75
@ -1376,6 +1376,10 @@ const docTemplate = `{
|
||||
"type": "string",
|
||||
"example": "퀴즈 시트 설명"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"example": "2023-11-10T13:10:00+09:00"
|
||||
},
|
||||
"guid_id": {
|
||||
"type": "string",
|
||||
"example": "ef74c59a-c707-4162-a52b-455906c81ec1"
|
||||
@ -1510,6 +1514,10 @@ const docTemplate = `{
|
||||
"type": "string",
|
||||
"example": "퀴즈 시트 설명"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"example": "2023-11-10T13:10:00+09:00"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"example": 100001
|
||||
|
@ -1368,6 +1368,10 @@
|
||||
"type": "string",
|
||||
"example": "퀴즈 시트 설명"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"example": "2023-11-10T13:10:00+09:00"
|
||||
},
|
||||
"guid_id": {
|
||||
"type": "string",
|
||||
"example": "ef74c59a-c707-4162-a52b-455906c81ec1"
|
||||
@ -1502,6 +1506,10 @@
|
||||
"type": "string",
|
||||
"example": "퀴즈 시트 설명"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"example": "2023-11-10T13:10:00+09:00"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"example": 100001
|
||||
|
@ -172,6 +172,9 @@ definitions:
|
||||
content:
|
||||
example: 퀴즈 시트 설명
|
||||
type: string
|
||||
created_at:
|
||||
example: "2023-11-10T13:10:00+09:00"
|
||||
type: string
|
||||
guid_id:
|
||||
example: ef74c59a-c707-4162-a52b-455906c81ec1
|
||||
type: string
|
||||
@ -267,6 +270,9 @@ definitions:
|
||||
content:
|
||||
example: 퀴즈 시트 설명
|
||||
type: string
|
||||
created_at:
|
||||
example: "2023-11-10T13:10:00+09:00"
|
||||
type: string
|
||||
id:
|
||||
example: 100001
|
||||
type: integer
|
||||
|
@ -17,7 +17,7 @@ type QuizPaper struct {
|
||||
Tag datatypes.JSON `json:"tag" db:"tag" gorm:"column:tag;"`
|
||||
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:"-" gorm:"column:created_at;type:DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;index;->:false;<-:create"`
|
||||
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;"`
|
||||
}
|
||||
|
||||
// 테이블이름 정의
|
||||
@ -43,6 +43,7 @@ type QuizPaperResponse struct {
|
||||
Category string `json:"category" example:"파이썬기본"`
|
||||
Tag []string `json:"tag" example:"Python,AI,Robot,파이썬"`
|
||||
Status string `json:"status" example:"on"`
|
||||
CreatedAt time.Time `json:"created_at" example:"2023-11-10T13:10:00+09:00"`
|
||||
}
|
||||
|
||||
type QuizPaperListResponse struct {
|
||||
|
Loading…
Reference in New Issue
Block a user