1Panel/backend/app/dto/setting.go

40 lines
1.2 KiB
Go
Raw Normal View History

2022-09-15 10:44:43 +08:00
package dto
type SettingInfo struct {
UserName string `json:"userName"`
Email string `json:"email"`
2022-12-22 18:06:49 +08:00
SessionTimeout string `json:"sessionTimeout"`
LocalTime string `json:"localTime"`
2022-09-15 10:44:43 +08:00
PanelName string `json:"panelName"`
Theme string `json:"theme"`
Language string `json:"language"`
2022-12-22 18:06:49 +08:00
ServerPort string `json:"serverPort"`
2022-09-15 10:44:43 +08:00
SecurityEntrance string `json:"securityEntrance"`
2022-12-22 18:06:49 +08:00
ExpirationDays string `json:"expirationDays"`
ExpirationTime string `json:"expirationTime"`
2022-09-15 10:44:43 +08:00
ComplexityVerification string `json:"complexityVerification"`
MFAStatus string `json:"mfaStatus"`
2022-09-14 23:27:17 +08:00
MFASecret string `json:"mfaSecret"`
2022-09-15 10:44:43 +08:00
MonitorStatus string `json:"monitorStatus"`
2022-12-22 18:06:49 +08:00
MonitorStoreDays string `json:"monitorStoreDays"`
2022-09-15 10:44:43 +08:00
MessageType string `json:"messageType"`
EmailVars string `json:"emailVars"`
WeChatVars string `json:"weChatVars"`
DingVars string `json:"dingVars"`
}
type SettingUpdate struct {
Key string `json:"key" validate:"required"`
Value string `json:"value"`
}
2022-09-08 18:47:15 +08:00
type PasswordUpdate struct {
OldPassword string `json:"oldPassword" validate:"required"`
NewPassword string `json:"newPassword" validate:"required"`
}