feat(sms): add sms login method

This commit is contained in:
2024-10-28 14:41:27 +08:00
parent bb580ff488
commit b5b839fdba
13 changed files with 532 additions and 20 deletions

View File

@ -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 {