@@ -30,13 +30,13 @@ import (
|
||||
|
||||
type (
|
||||
CookieBannerTranslation struct {
|
||||
ID gid.GID `db:"id"`
|
||||
OrganizationID gid.GID `db:"organization_id"`
|
||||
CookieBannerID gid.GID `db:"cookie_banner_id"`
|
||||
Language string `db:"language"`
|
||||
Translations json.RawMessage `db:"translations"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
UpdatedAt time.Time `db:"updated_at"`
|
||||
ID gid.GID `db:"id"`
|
||||
OrganizationID gid.GID `db:"organization_id"`
|
||||
CookieBannerID gid.GID `db:"cookie_banner_id"`
|
||||
Language string `db:"language"`
|
||||
Translations json.RawMessage `db:"translations"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
UpdatedAt time.Time `db:"updated_at"`
|
||||
}
|
||||
|
||||
CookieBannerTranslations []*CookieBannerTranslation
|
||||
|
||||
@@ -30,17 +30,17 @@ import (
|
||||
|
||||
type (
|
||||
CookieBannerVersionSnapshot struct {
|
||||
PrivacyPolicyURL string `json:"privacy_policy_url"`
|
||||
ConsentExpiryDays int `json:"consent_expiry_days"`
|
||||
ConsentMode string `json:"consent_mode"`
|
||||
DefaultLanguage string `json:"default_language"`
|
||||
Categories []CookieBannerVersionSnapshotCategory `json:"categories"`
|
||||
Translations map[string]CookieBannerVersionSnapshotTranslation `json:"translations,omitempty"`
|
||||
PrivacyPolicyURL string `json:"privacy_policy_url"`
|
||||
ConsentExpiryDays int `json:"consent_expiry_days"`
|
||||
ConsentMode string `json:"consent_mode"`
|
||||
DefaultLanguage string `json:"default_language"`
|
||||
Categories []CookieBannerVersionSnapshotCategory `json:"categories"`
|
||||
Translations map[string]CookieBannerVersionSnapshotTranslation `json:"translations,omitempty"`
|
||||
}
|
||||
|
||||
CookieBannerVersionSnapshotTranslation struct {
|
||||
UI map[string]string `json:"ui"`
|
||||
Categories []CookieBannerVersionSnapshotCategoryTranslation `json:"categories"`
|
||||
UI map[string]string `json:"ui"`
|
||||
Categories []CookieBannerVersionSnapshotCategoryTranslation `json:"categories"`
|
||||
}
|
||||
|
||||
CookieBannerVersionSnapshotCategoryTranslation struct {
|
||||
|
||||
Reference in New Issue
Block a user