From 5ba90258a45180c8123484aa52609213fce2a9e5 Mon Sep 17 00:00:00 2001 From: "Hank.Lu" Date: Thu, 6 Dec 2018 15:00:12 +0800 Subject: [PATCH 1/2] Update apiapp.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit db连接信息使用双引号包含 --- cmd/commands/api/apiapp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/commands/api/apiapp.go b/cmd/commands/api/apiapp.go index e1862be..4eab288 100644 --- a/cmd/commands/api/apiapp.go +++ b/cmd/commands/api/apiapp.go @@ -35,7 +35,7 @@ var CmdApiapp = &commands.Command{ The command 'api' creates a Beego API application. {{"Example:"|bold}} - $ bee api [appname] [-tables=""] [-driver=mysql] [-conn=root:@tcp(127.0.0.1:3306)/test] + $ bee api [appname] [-tables=""] [-driver=mysql] [-conn="root:@tcp(127.0.0.1:3306)/test"] If 'conn' argument is empty, the command will generate an example API application. Otherwise the command will connect to your database and generate models based on the existing tables. From babd8d04b4287dce7dea98b373a01008ee7c8f45 Mon Sep 17 00:00:00 2001 From: "Hank.Lu" Date: Thu, 6 Dec 2018 15:01:38 +0800 Subject: [PATCH 2/2] Update hprose.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit db连接信息使用双引号包含 --- cmd/commands/hprose/hprose.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/commands/hprose/hprose.go b/cmd/commands/hprose/hprose.go index 135070f..1d50581 100644 --- a/cmd/commands/hprose/hprose.go +++ b/cmd/commands/hprose/hprose.go @@ -24,7 +24,7 @@ var CmdHproseapp = &commands.Command{ {{"To scaffold out your application, use:"|bold}} - $ bee hprose [appname] [-tables=""] [-driver=mysql] [-conn=root:@tcp(127.0.0.1:3306)/test] + $ bee hprose [appname] [-tables=""] [-driver=mysql] [-conn="root:@tcp(127.0.0.1:3306)/test"] If 'conn' is empty, the command will generate a sample application. Otherwise the command will connect to your database and generate models based on the existing tables.