feat: persistent session name (#902)

* feat: persistent session name

* chore: update
This commit is contained in:
boojack
2023-01-03 23:05:42 +08:00
committed by GitHub
parent 92a8a4ac0c
commit d50ad9433f
7 changed files with 96 additions and 59 deletions

View File

@ -13,6 +13,8 @@ type SystemSettingName string
const (
// SystemSettingServerID is the key type of server id.
SystemSettingServerID SystemSettingName = "serverId"
// SystemSettingSecretSessionName is the key type of secret session name.
SystemSettingSecretSessionName SystemSettingName = "secretSessionName"
// SystemSettingAllowSignUpName is the key type of allow signup setting.
SystemSettingAllowSignUpName SystemSettingName = "allowSignUp"
// SystemSettingAdditionalStyleName is the key type of additional style.
@ -43,6 +45,8 @@ func (key SystemSettingName) String() string {
switch key {
case SystemSettingServerID:
return "serverId"
case SystemSettingSecretSessionName:
return "secretSessionName"
case SystemSettingAllowSignUpName:
return "allowSignUp"
case SystemSettingAdditionalStyleName: