2024-08-17 21:57:14 +02:00
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
type AppConfigVariable struct {
|
|
|
|
|
Key string `gorm:"primaryKey;not null" json:"key"`
|
|
|
|
|
Type string `json:"type"`
|
|
|
|
|
IsPublic bool `json:"-"`
|
|
|
|
|
IsInternal bool `json:"-"`
|
|
|
|
|
Value string `json:"value"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AppConfig struct {
|
|
|
|
|
AppName AppConfigVariable
|
|
|
|
|
BackgroundImageType AppConfigVariable
|
|
|
|
|
LogoImageType AppConfigVariable
|
|
|
|
|
SessionDuration AppConfigVariable
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AppConfigUpdateDto struct {
|
2024-08-19 23:10:14 +02:00
|
|
|
AppName string `json:"appName" binding:"required"`
|
|
|
|
|
SessionDuration string `json:"sessionDuration" binding:"required"`
|
2024-08-17 21:57:14 +02:00
|
|
|
}
|