57 lines
2.0 KiB
Go
57 lines
2.0 KiB
Go
package dto
|
|
|
|
import "kra/internal/conf"
|
|
|
|
type SecurityConfigRequest struct {
|
|
ID uint `json:"ID"`
|
|
CaptchaOpen int `json:"captchaOpen"`
|
|
CaptchaTimeout int `json:"captchaTimeout"`
|
|
KeyLong int `json:"keyLong"`
|
|
ImgWidth int `json:"imgWidth"`
|
|
ImgHeight int `json:"imgHeight"`
|
|
PwdMinLength int `json:"pwdMinLength"`
|
|
PwdRequireUpper bool `json:"pwdRequireUpper"`
|
|
PwdRequireLower bool `json:"pwdRequireLower"`
|
|
PwdRequireDigit bool `json:"pwdRequireDigit"`
|
|
PwdRequireSpecial bool `json:"pwdRequireSpecial"`
|
|
LimitEnable bool `json:"limitEnable"`
|
|
LimitWindow int `json:"limitWindow"`
|
|
LimitCount int `json:"limitCount"`
|
|
LockEnable bool `json:"lockEnable"`
|
|
LockThreshold int `json:"lockThreshold"`
|
|
LockDuration int `json:"lockDuration"`
|
|
PwdExpireEnable bool `json:"pwdExpireEnable"`
|
|
PwdExpireDays int `json:"pwdExpireDays"`
|
|
ForceNewUserChangePassword bool `json:"forceNewUserChangePassword"`
|
|
}
|
|
|
|
type SetSystemConfigRequest struct {
|
|
Config struct {
|
|
Admin struct {
|
|
RouterPrefix string `json:"routerPrefix"`
|
|
JWT struct {
|
|
SigningKey string `json:"signingKey"`
|
|
Issuer string `json:"issuer"`
|
|
} `json:"jwt"`
|
|
Local struct {
|
|
StorePath string `json:"storePath"`
|
|
PathPrefix string `json:"pathPrefix"`
|
|
} `json:"local"`
|
|
Media struct {
|
|
SessionTTL int32 `json:"sessionTtl"`
|
|
} `json:"media"`
|
|
Storage *conf.AdminBackend_Storage `json:"storage"`
|
|
} `json:"admin"`
|
|
Email *struct {
|
|
To string `json:"to"`
|
|
From string `json:"from"`
|
|
Host string `json:"host"`
|
|
Secret string `json:"secret"`
|
|
Nickname string `json:"nickname"`
|
|
Port int32 `json:"port"`
|
|
IsSSL bool `json:"is-ssl"`
|
|
IsLoginAuth bool `json:"is-loginauth"`
|
|
} `json:"email"`
|
|
} `json:"config"`
|
|
}
|