2024-08-23 17:04:19 +02:00
|
|
|
package dto
|
|
|
|
|
|
|
|
|
|
type PublicAppConfigVariableDto struct {
|
|
|
|
|
Key string `json:"key"`
|
|
|
|
|
Type string `json:"type"`
|
|
|
|
|
Value string `json:"value"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AppConfigVariableDto struct {
|
|
|
|
|
PublicAppConfigVariableDto
|
|
|
|
|
IsPublic bool `json:"isPublic"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AppConfigUpdateDto struct {
|
2024-10-28 18:45:27 +01:00
|
|
|
AppName string `json:"appName" binding:"required,min=1,max=30"`
|
|
|
|
|
SessionDuration string `json:"sessionDuration" binding:"required"`
|
|
|
|
|
EmailsVerified string `json:"emailsVerified" binding:"required"`
|
|
|
|
|
AllowOwnAccountEdit string `json:"allowOwnAccountEdit" binding:"required"`
|
|
|
|
|
EmailEnabled string `json:"emailEnabled" binding:"required"`
|
|
|
|
|
SmtHost string `json:"smtpHost"`
|
|
|
|
|
SmtpPort string `json:"smtpPort"`
|
|
|
|
|
SmtpFrom string `json:"smtpFrom" binding:"omitempty,email"`
|
|
|
|
|
SmtpUser string `json:"smtpUser"`
|
|
|
|
|
SmtpPassword string `json:"smtpPassword"`
|
2024-08-23 17:04:19 +02:00
|
|
|
}
|