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

39 lines
1.1 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-09-16 16:00:49 +08:00
SessionTimeout int `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-09-16 16:00:49 +08:00
ServerPort int `json:"serverPort"`
2022-09-15 10:44:43 +08:00
SecurityEntrance string `json:"securityEntrance"`
PasswordTimeOut string `json:"passwordTimeOut"`
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-09-16 16:00:49 +08:00
MonitorStoreDays int `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"`
}