Skip to content

Commit

Permalink
fix(配置): 修复数据库配置host
Browse files Browse the repository at this point in the history
  • Loading branch information
storezhang committed May 24, 2024
1 parent 0900606 commit 237814c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type DB struct {
Type string `default:"sqlite3" json:"type,omitempty" yaml:"type" xml:"type" toml:"type" validate:"required,oneof=mysql sqlite sqlite3 mssql oracle psql"`

// 主机
Host string `json:"addr,omitempty" yaml:"addr" xml:"addr" toml:"addr" validate:"required,hostname|ip"`
Host string `json:"host,omitempty" yaml:"host" xml:"host" toml:"host" validate:"required,hostname|ip"`
// 端口
Port int `default:"3306" json:"port,omitempty" yaml:"port" xml:"port" toml:"port" validate:"required,max=65535"`
// 授权,用户名
Expand Down

0 comments on commit 237814c

Please sign in to comment.