feat: 实现数据库连接和健康检查端点

This commit is contained in:
yangzhaohan
2026-07-09 17:04:56 +08:00
parent 262c8377b9
commit 8ef79eb5f8
4 changed files with 77 additions and 4 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ type ServerConfig struct {
type DatabaseConfig struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
User string `mapstructure:"user"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
DBName string `mapstructure:"dbname"`
SSLMode string `mapstructure:"sslmode"`