refactor:端口改为int

This commit is contained in:
Leon
2025-12-23 02:21:33 +08:00
parent b0a7c85a8d
commit 88d2cabaac
3 changed files with 29 additions and 7 deletions

View File

@@ -12,12 +12,12 @@ type Config struct {
}
type ServerConfig struct {
Port string `yaml:"port"`
Port int `yaml:"port"`
}
type DatabaseConfig struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
DBName string `yaml:"dbname"`