mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-11 15:52:58 +03:00
24 lines
721 B
Go
24 lines
721 B
Go
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 {
|
|
AppName string `json:"appName" binding:"required,min=1,max=30"`
|
|
SessionDuration string `json:"sessionDuration" 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"`
|
|
}
|