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"`
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"`
ServerPort string `json:"serverPort"`
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"`
MonitorStoreDays string `json:"monitorStoreDays"`
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"`
}