mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 02:32:57 +00:00
hot fix #1
This commit is contained in:
@@ -274,6 +274,16 @@ type Settings struct {
|
||||
VideosSource string `json:"videos_source"` // auto | manual
|
||||
VideosLimit int `json:"videos_limit"` // number of items on homepage
|
||||
|
||||
// Transient decoded forms for admin/public JSON responses (not persisted)
|
||||
Videos []string `gorm:"-" json:"videos,omitempty"`
|
||||
VideosItems []struct {
|
||||
URL string `json:"url"`
|
||||
Title *string `json:"title,omitempty"`
|
||||
Length *string `json:"length,omitempty"`
|
||||
UploadedAt *string `json:"uploaded_at,omitempty"`
|
||||
ThumbnailURL *string `json:"thumbnail_url,omitempty"`
|
||||
} `gorm:"-" json:"videos_items,omitempty"`
|
||||
|
||||
// Manual videos storage (JSON strings)
|
||||
VideosJSON string `gorm:"type:text" json:"-"`
|
||||
VideosItemsJSON string `gorm:"type:text" json:"-"`
|
||||
@@ -340,6 +350,9 @@ type Settings struct {
|
||||
ErrorReviewAdminURL string `json:"error_review_admin_url"`
|
||||
ErrorReviewAdminToken string `json:"error_review_admin_token"`
|
||||
ErrorReviewUIURL string `json:"error_review_ui_url"`
|
||||
|
||||
// E-shop payment configuration
|
||||
RevolutEnabled bool `json:"revolut_enabled"`
|
||||
}
|
||||
|
||||
// TableName specifies table name for Settings model
|
||||
|
||||
Reference in New Issue
Block a user