...
|
...
|
@@ -163,10 +163,18 @@ func (u Users) String() string { |
|
|
}
|
|
|
|
|
|
func main() {
|
|
|
// 本地开发
|
|
|
//db := pg.Connect(&pg.Options{
|
|
|
// User: "postgres",
|
|
|
// Addr: ":5432",
|
|
|
// Password: "1993618jack",
|
|
|
// Database: "partner_test",
|
|
|
//})
|
|
|
// 测试环境
|
|
|
db := pg.Connect(&pg.Options{
|
|
|
User: "postgres",
|
|
|
Addr: ":5432",
|
|
|
Password: "1993618jack",
|
|
|
Addr: "114.55.200.59:31543",
|
|
|
Password: "eagle1010",
|
|
|
Database: "partner_test",
|
|
|
})
|
|
|
defer db.Close()
|
...
|
...
|
|