Skip to content

Commit

Permalink
+ next tips
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Feb 9, 2022
1 parent 657d68d commit cf4e2d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 3 additions & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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))
},
}

Expand Down Expand Up @@ -120,7 +122,7 @@ func defaultApps() {
"filters": [{ "name": "Keywords" }]
},
"actions": { "pagination": { "props": { "showTotal": true } } },
"option": {}
"option": { "operation": { "unfold": true} }
},
"edit": {
"primary": "id",
Expand Down
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var langs = map[string]string{
"Model name": "模型名称",
"Initialize project": "项目初始化",
"✨DONE✨": "✨完成✨",
"NEXT:": "下一步:",
}

// L 多语言切换
Expand Down
10 changes: 2 additions & 8 deletions table/process.go
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit cf4e2d1

Please sign in to comment.