16 lines
473 B
Go
16 lines
473 B
Go
package config
|
|
|
|
type AuthConfig struct {
|
|
Enable bool `ini:"enable" yaml:"enable" mapstructure:"enable"`
|
|
Url string `ini:"url" yaml:"url" mapstructure:"url"`
|
|
LoginInfo string `ini:"login_info" yaml:"login_info" mapstructure:"login_info"`
|
|
LoginWithCode string `ini:"login_with_code" yaml:"login_with_code" mapstructure:"login_with_code"`
|
|
}
|
|
|
|
var Auth = AuthConfig{
|
|
Enable: true,
|
|
Url: "",
|
|
LoginInfo: "",
|
|
LoginWithCode: "",
|
|
}
|