Commit 8a639d01 by 孙龙

up

parent 4628e5cb
Showing with 3 additions and 0 deletions
......@@ -28,8 +28,10 @@ func Init(dns string) error {
}
func InitLabelDB(dns string) error{
fmt.Println(666)
var err error
LabelDB, err = sqlx.Open("mysql", dns)
fmt.Println(err)
if err != nil {
return err
}
......@@ -62,6 +64,7 @@ func InitCmslDB(dns string) error{
func CreateDB(action string,dns string) error{
fmt.Println(action)
fmt.Println(dns)
var err error
switch action {
case "Init":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment