add gui support

添加 ui 支持
This commit is contained in:
谢小军
2020-01-21 00:41:16 +08:00
parent 530ef778f7
commit b72a40e40e
15 changed files with 658 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"os/exec"
"github.com/xxjwxc/gormt/data/dlg"
"github.com/xxjwxc/gormt/data/view/model"
"github.com/xxjwxc/gormt/data/config"
@@ -13,7 +14,15 @@ import (
// Execute exe the cmd
func Execute() {
if config.GetIsGUI() {
dlg.WinMain()
} else {
showCmd()
}
}
func showCmd() {
// var tt oauth_db.UserInfoTbl
// tt.Nickname = "ticket_001"
// orm.Where("nickname = ?", "ticket_001").Find(&tt)