From cf4e2d1f883b109b6716a698f57faf8cebf5630e Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 9 Feb 2022 22:10:03 +0800 Subject: [PATCH] + next tips --- cmd/init.go | 4 +++- cmd/root.go | 1 + table/process.go | 10 ++-------- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/cmd/init.go b/cmd/init.go index b0155d86..a56f19b8 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -9,6 +9,7 @@ import ( "github.com/fatih/color" "github.com/spf13/cobra" "github.com/yaoapp/yao/config" + "github.com/yaoapp/yao/share" ) var initCmd = &cobra.Command{ @@ -23,6 +24,7 @@ var initCmd = &cobra.Command{ makeEnv() defaultApps() fmt.Println(color.GreenString(L("✨DONE✨"))) + fmt.Println(color.WhiteString(L("NEXT:")), color.GreenString("%s migrate && %s run flows.setmenu", share.BUILDNAME, share.BUILDNAME)) }, } @@ -120,7 +122,7 @@ func defaultApps() { "filters": [{ "name": "Keywords" }] }, "actions": { "pagination": { "props": { "showTotal": true } } }, - "option": {} + "option": { "operation": { "unfold": true} } }, "edit": { "primary": "id", diff --git a/cmd/root.go b/cmd/root.go index 08ecc52d..8801827c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -42,6 +42,7 @@ var langs = map[string]string{ "Model name": "模型名称", "Initialize project": "项目初始化", "✨DONE✨": "✨完成✨", + "NEXT:": "下一步:", } // L 多语言切换 diff --git a/table/process.go b/table/process.go index 8b518ee7..129bc1fa 100644 --- a/table/process.go +++ b/table/process.go @@ -1,13 +1,12 @@ package table import ( - "fmt" "strings" "github.com/yaoapp/gou" "github.com/yaoapp/kun/any" + "github.com/yaoapp/kun/log" "github.com/yaoapp/kun/maps" - "github.com/yaoapp/kun/utils" ) func init() { @@ -46,12 +45,7 @@ func ProcessSearch(process *gou.Process) interface{} { // 参数表 process.ValidateArgNums(4) param := api.MergeDefaultQueryParam(process.ArgsQueryParams(1), 0, process.Sid) - - fmt.Println("\n==== ProcessSearch ============= SID:", process.Sid) - utils.Dump(param) - fmt.Println("==== END ProcessSearch ===============================================") - fmt.Println("") - + log.With(log.F{"param": param}).Trace("==== ProcessSearch ============= SID: %s", process.Sid) page := process.ArgsInt(2, api.DefaultInt(1)) pagesize := process.ArgsInt(3, api.DefaultInt(2))