|
@@ -16,47 +16,49 @@ type Msg struct {
|
|
|
}
|
|
|
|
|
|
type AllSetting struct {
|
|
|
- WebListen string `json:"webListen" form:"webListen"`
|
|
|
- WebDomain string `json:"webDomain" form:"webDomain"`
|
|
|
- WebPort int `json:"webPort" form:"webPort"`
|
|
|
- WebCertFile string `json:"webCertFile" form:"webCertFile"`
|
|
|
- WebKeyFile string `json:"webKeyFile" form:"webKeyFile"`
|
|
|
- WebBasePath string `json:"webBasePath" form:"webBasePath"`
|
|
|
- SessionMaxAge int `json:"sessionMaxAge" form:"sessionMaxAge"`
|
|
|
- PageSize int `json:"pageSize" form:"pageSize"`
|
|
|
- ExpireDiff int `json:"expireDiff" form:"expireDiff"`
|
|
|
- TrafficDiff int `json:"trafficDiff" form:"trafficDiff"`
|
|
|
- RemarkModel string `json:"remarkModel" form:"remarkModel"`
|
|
|
- TgBotEnable bool `json:"tgBotEnable" form:"tgBotEnable"`
|
|
|
- TgBotToken string `json:"tgBotToken" form:"tgBotToken"`
|
|
|
- TgBotProxy string `json:"tgBotProxy" form:"tgBotProxy"`
|
|
|
- TgBotAPIServer string `json:"tgBotAPIServer" form:"tgBotAPIServer"`
|
|
|
- TgBotChatId string `json:"tgBotChatId" form:"tgBotChatId"`
|
|
|
- TgRunTime string `json:"tgRunTime" form:"tgRunTime"`
|
|
|
- TgBotBackup bool `json:"tgBotBackup" form:"tgBotBackup"`
|
|
|
- TgBotLoginNotify bool `json:"tgBotLoginNotify" form:"tgBotLoginNotify"`
|
|
|
- TgCpu int `json:"tgCpu" form:"tgCpu"`
|
|
|
- TgLang string `json:"tgLang" form:"tgLang"`
|
|
|
- TimeLocation string `json:"timeLocation" form:"timeLocation"`
|
|
|
- SecretEnable bool `json:"secretEnable" form:"secretEnable"`
|
|
|
- SubEnable bool `json:"subEnable" form:"subEnable"`
|
|
|
- SubListen string `json:"subListen" form:"subListen"`
|
|
|
- SubPort int `json:"subPort" form:"subPort"`
|
|
|
- SubPath string `json:"subPath" form:"subPath"`
|
|
|
- SubDomain string `json:"subDomain" form:"subDomain"`
|
|
|
- SubCertFile string `json:"subCertFile" form:"subCertFile"`
|
|
|
- SubKeyFile string `json:"subKeyFile" form:"subKeyFile"`
|
|
|
- SubUpdates int `json:"subUpdates" form:"subUpdates"`
|
|
|
- SubEncrypt bool `json:"subEncrypt" form:"subEncrypt"`
|
|
|
- SubShowInfo bool `json:"subShowInfo" form:"subShowInfo"`
|
|
|
- SubURI string `json:"subURI" form:"subURI"`
|
|
|
- SubJsonPath string `json:"subJsonPath" form:"subJsonPath"`
|
|
|
- SubJsonURI string `json:"subJsonURI" form:"subJsonURI"`
|
|
|
- SubJsonFragment string `json:"subJsonFragment" form:"subJsonFragment"`
|
|
|
- SubJsonNoises string `json:"subJsonNoises" form:"subJsonNoises"`
|
|
|
- SubJsonMux string `json:"subJsonMux" form:"subJsonMux"`
|
|
|
- SubJsonRules string `json:"subJsonRules" form:"subJsonRules"`
|
|
|
- Datepicker string `json:"datepicker" form:"datepicker"`
|
|
|
+ WebListen string `json:"webListen" form:"webListen"`
|
|
|
+ WebDomain string `json:"webDomain" form:"webDomain"`
|
|
|
+ WebPort int `json:"webPort" form:"webPort"`
|
|
|
+ WebCertFile string `json:"webCertFile" form:"webCertFile"`
|
|
|
+ WebKeyFile string `json:"webKeyFile" form:"webKeyFile"`
|
|
|
+ WebBasePath string `json:"webBasePath" form:"webBasePath"`
|
|
|
+ SessionMaxAge int `json:"sessionMaxAge" form:"sessionMaxAge"`
|
|
|
+ PageSize int `json:"pageSize" form:"pageSize"`
|
|
|
+ ExpireDiff int `json:"expireDiff" form:"expireDiff"`
|
|
|
+ TrafficDiff int `json:"trafficDiff" form:"trafficDiff"`
|
|
|
+ RemarkModel string `json:"remarkModel" form:"remarkModel"`
|
|
|
+ TgBotEnable bool `json:"tgBotEnable" form:"tgBotEnable"`
|
|
|
+ TgBotToken string `json:"tgBotToken" form:"tgBotToken"`
|
|
|
+ TgBotProxy string `json:"tgBotProxy" form:"tgBotProxy"`
|
|
|
+ TgBotAPIServer string `json:"tgBotAPIServer" form:"tgBotAPIServer"`
|
|
|
+ TgBotChatId string `json:"tgBotChatId" form:"tgBotChatId"`
|
|
|
+ TgRunTime string `json:"tgRunTime" form:"tgRunTime"`
|
|
|
+ TgBotBackup bool `json:"tgBotBackup" form:"tgBotBackup"`
|
|
|
+ TgBotLoginNotify bool `json:"tgBotLoginNotify" form:"tgBotLoginNotify"`
|
|
|
+ TgCpu int `json:"tgCpu" form:"tgCpu"`
|
|
|
+ TgLang string `json:"tgLang" form:"tgLang"`
|
|
|
+ TimeLocation string `json:"timeLocation" form:"timeLocation"`
|
|
|
+ SecretEnable bool `json:"secretEnable" form:"secretEnable"`
|
|
|
+ SubEnable bool `json:"subEnable" form:"subEnable"`
|
|
|
+ SubListen string `json:"subListen" form:"subListen"`
|
|
|
+ SubPort int `json:"subPort" form:"subPort"`
|
|
|
+ SubPath string `json:"subPath" form:"subPath"`
|
|
|
+ SubDomain string `json:"subDomain" form:"subDomain"`
|
|
|
+ SubCertFile string `json:"subCertFile" form:"subCertFile"`
|
|
|
+ SubKeyFile string `json:"subKeyFile" form:"subKeyFile"`
|
|
|
+ SubUpdates int `json:"subUpdates" form:"subUpdates"`
|
|
|
+ ExternalTrafficInformEnable bool `json:"externalTrafficInformEnable" form:"externalTrafficInformEnable"`
|
|
|
+ ExternalTrafficInformURI string `json:"externalTrafficInformURI" form:"externalTrafficInformURI"`
|
|
|
+ SubEncrypt bool `json:"subEncrypt" form:"subEncrypt"`
|
|
|
+ SubShowInfo bool `json:"subShowInfo" form:"subShowInfo"`
|
|
|
+ SubURI string `json:"subURI" form:"subURI"`
|
|
|
+ SubJsonPath string `json:"subJsonPath" form:"subJsonPath"`
|
|
|
+ SubJsonURI string `json:"subJsonURI" form:"subJsonURI"`
|
|
|
+ SubJsonFragment string `json:"subJsonFragment" form:"subJsonFragment"`
|
|
|
+ SubJsonNoises string `json:"subJsonNoises" form:"subJsonNoises"`
|
|
|
+ SubJsonMux string `json:"subJsonMux" form:"subJsonMux"`
|
|
|
+ SubJsonRules string `json:"subJsonRules" form:"subJsonRules"`
|
|
|
+ Datepicker string `json:"datepicker" form:"datepicker"`
|
|
|
}
|
|
|
|
|
|
func (s *AllSetting) CheckValid() error {
|