feat(sms): add sms login method
This commit is contained in:
@ -5,6 +5,7 @@ import "github.com/BurntSushi/toml"
|
||||
type Config struct {
|
||||
Server ServerConfig `toml:"server"`
|
||||
DB DBConfig `toml:"db"`
|
||||
Redis RedisConfig `toml:"redis"`
|
||||
}
|
||||
|
||||
type ServerConfig struct {
|
||||
@ -19,6 +20,13 @@ type DBConfig struct {
|
||||
Passwd string `toml:"passwd"`
|
||||
}
|
||||
|
||||
type RedisConfig struct {
|
||||
Host string `toml:"host"`
|
||||
Port int `toml:"port"`
|
||||
DB int `toml:"db"`
|
||||
Passwd string `toml:"passwd"`
|
||||
}
|
||||
|
||||
var Conf *Config
|
||||
|
||||
func ReadConfig(path string) error {
|
||||
|
Reference in New Issue
Block a user