sys_init.go 411 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 package request type InitDB struct { Host string `json:"host"` // 服务器地址 Port string `json:"port"` // 数据库连接端口 UserName string `json:"userName" binding:"required"` // 数据库用户名 Password string `json:"password"` // 数据库密码 DBName string `json:"dbName" binding:"required"` // 数据库名 }