add fix
This commit is contained in:
parent
17246696e2
commit
877ec0dd89
@ -1626,6 +1626,11 @@ const docTemplate = `{
|
|||||||
"format": "uuid",
|
"format": "uuid",
|
||||||
"example": "550e8400-e29b-41d4-a716-446655440000"
|
"example": "550e8400-e29b-41d4-a716-446655440000"
|
||||||
},
|
},
|
||||||
|
"paid_time": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"example": "2025-03-12T15:05:10Z"
|
||||||
|
},
|
||||||
"play_content": {
|
"play_content": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"example": true
|
"example": true
|
||||||
|
@ -1619,6 +1619,11 @@
|
|||||||
"format": "uuid",
|
"format": "uuid",
|
||||||
"example": "550e8400-e29b-41d4-a716-446655440000"
|
"example": "550e8400-e29b-41d4-a716-446655440000"
|
||||||
},
|
},
|
||||||
|
"paid_time": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time",
|
||||||
|
"example": "2025-03-12T15:05:10Z"
|
||||||
|
},
|
||||||
"play_content": {
|
"play_content": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"example": true
|
"example": true
|
||||||
|
@ -97,6 +97,10 @@ definitions:
|
|||||||
example: 550e8400-e29b-41d4-a716-446655440000
|
example: 550e8400-e29b-41d4-a716-446655440000
|
||||||
format: uuid
|
format: uuid
|
||||||
type: string
|
type: string
|
||||||
|
paid_time:
|
||||||
|
example: "2025-03-12T15:05:10Z"
|
||||||
|
format: date-time
|
||||||
|
type: string
|
||||||
play_content:
|
play_content:
|
||||||
example: true
|
example: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
@ -78,6 +78,7 @@ type Donat struct {
|
|||||||
ShowText bool `db:"show_text" json:"show_text" example:"true" description:"Whether to show the donation message"`
|
ShowText bool `db:"show_text" json:"show_text" example:"true" description:"Whether to show the donation message"`
|
||||||
PlayContent bool `db:"play_content" json:"play_content" example:"true" description:"Whether to play media content (e.g., TTS, sound)"`
|
PlayContent bool `db:"play_content" json:"play_content" example:"true" description:"Whether to play media content (e.g., TTS, sound)"`
|
||||||
ShowedTime *time.Time `db:"showed_time" json:"showed_time" format:"date-time" example:"2025-03-12T15:05:10Z" description:"Timestamp when the donation was displayed on stream"`
|
ShowedTime *time.Time `db:"showed_time" json:"showed_time" format:"date-time" example:"2025-03-12T15:05:10Z" description:"Timestamp when the donation was displayed on stream"`
|
||||||
|
Paid *time.Time `db:"paid_time" json:"paid_time" format:"date-time" example:"2025-03-12T15:05:10Z" description:"Timestamp when the donation was paid"`
|
||||||
CreatedAt time.Time `db:"created_at" json:"-" format:"date-time" example:"2025-03-12T15:04:05Z" description:"Timestamp when the donation was created"`
|
CreatedAt time.Time `db:"created_at" json:"-" format:"date-time" example:"2025-03-12T15:04:05Z" description:"Timestamp when the donation was created"`
|
||||||
UpdatedAt time.Time `db:"updated_at" json:"-" format:"date-time" example:"2025-03-12T15:04:05Z" description:"Timestamp when the donation was last updated"`
|
UpdatedAt time.Time `db:"updated_at" json:"-" format:"date-time" example:"2025-03-12T15:04:05Z" description:"Timestamp when the donation was last updated"`
|
||||||
}
|
}
|
||||||
|
@ -68,6 +68,7 @@ SELECT
|
|||||||
accepted_time,
|
accepted_time,
|
||||||
show_name,
|
show_name,
|
||||||
show_text,
|
show_text,
|
||||||
|
paid_time,
|
||||||
play_content,
|
play_content,
|
||||||
showed_time,
|
showed_time,
|
||||||
created_at,
|
created_at,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user