Commit 8fd9c05a by Joneq

测试连接

parent 63647e6a
Showing with 7 additions and 0 deletions
......@@ -27,4 +27,11 @@ func main() {
fmt.Println(err)
}
fmt.Println(user_info.Mobile)
//查找手机号
err = dao.GetLiexinDb().QueryRowx("select mobile from lie_user_main where user_id = ?",1).StructScan(&user_info)
if err != nil {
fmt.Println(err)
}
fmt.Println(user_info.Mobile)
}
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