修改账号注册方法,以及邮箱协议对接
This commit is contained in:
@@ -34,10 +34,28 @@ type Clash struct {
|
||||
}
|
||||
|
||||
type AppConfig struct {
|
||||
Port int `yaml:"port"`
|
||||
Database DatabaseConfig `yaml:"database"`
|
||||
Limit Limit `yaml:"limit"`
|
||||
Clash Clash `yaml:"clash"`
|
||||
Port int `yaml:"port"`
|
||||
Database DatabaseConfig `yaml:"database"`
|
||||
Limit Limit `yaml:"limit"`
|
||||
Clash Clash `yaml:"clash"`
|
||||
BitBrowser BitBrowserConfig `yaml:"bitBrowser"`
|
||||
AdsPower AdsPowerConfig `yaml:"adsPower"`
|
||||
Firstmail FirstmailConfig `yaml:"firstmail"`
|
||||
}
|
||||
|
||||
type BitBrowserConfig struct {
|
||||
ApiUrl string `yaml:"apiUrl"`
|
||||
ApiToken string `yaml:"apiToken"`
|
||||
}
|
||||
|
||||
type AdsPowerConfig struct {
|
||||
ApiUrl string `yaml:"apiUrl"`
|
||||
ApiToken string `yaml:"apiToken"`
|
||||
}
|
||||
|
||||
type FirstmailConfig struct {
|
||||
ApiUrl string `yaml:"apiUrl"`
|
||||
ApiToken string `yaml:"apiToken"`
|
||||
}
|
||||
|
||||
func LoadConfig() (*AppConfig, error) {
|
||||
|
||||
Reference in New Issue
Block a user