更新为postgre储存
This commit is contained in:
@@ -32,8 +32,8 @@ type DatabaseConfig struct {
|
||||
}
|
||||
|
||||
func (d *DatabaseConfig) DSN() string {
|
||||
return fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&loc=Local",
|
||||
d.Username, d.Password, d.Host, d.Port, d.Database)
|
||||
return fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable TimeZone=Asia/Shanghai",
|
||||
d.Host, d.Port, d.Username, d.Password, d.Database)
|
||||
}
|
||||
|
||||
type RedisConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user