Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAAA <theakhgar@gmail.com>2025-02-22 12:45:14 +0300
committerGitHub <noreply@github.com>2025-02-22 12:45:14 +0300
commit1bbf31df9f61d92c5343e7867567171b6655c4de (patch)
tree02d4b2c02a94a146e53d90e38e052df99dd4052c /web/entity
parent49bfff9fa5a6acb50c8f51710a3e4005daf0ca32 (diff)
feat(externalTrafficJob): External Traffic Inform (#2660)
* Add Setting entity + GUI field in panel settings * Add a missing 'Traffic' in InformEnabale field * Add ExternalTrafficURL Post request call * Add translation + cleanup * Move options to General tab --------- Co-authored-by: root <root@vm3562019.stark-industries.solutions> Co-authored-by: root <root@vm3688062.stark-industries.solutions>
Diffstat (limited to 'web/entity')
-rw-r--r--web/entity/entity.go84
1 files changed, 43 insertions, 41 deletions
diff --git a/web/entity/entity.go b/web/entity/entity.go
index 12206340..98d26faf 100644
--- a/web/entity/entity.go
+++ b/web/entity/entity.go
@@ -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 {