+ next tips

This commit is contained in:
Max 2022-02-09 22:10:03 +08:00
parent 657d68d477
commit cf4e2d1f88
3 changed files with 6 additions and 9 deletions

View file

@ -9,6 +9,7 @@ import (
"github.com/fatih/color" "github.com/fatih/color"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/yaoapp/yao/config" "github.com/yaoapp/yao/config"
"github.com/yaoapp/yao/share"
) )
var initCmd = &cobra.Command{ var initCmd = &cobra.Command{
@ -23,6 +24,7 @@ var initCmd = &cobra.Command{
makeEnv() makeEnv()
defaultApps() defaultApps()
fmt.Println(color.GreenString(L("✨DONE✨"))) 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" }] "filters": [{ "name": "Keywords" }]
}, },
"actions": { "pagination": { "props": { "showTotal": true } } }, "actions": { "pagination": { "props": { "showTotal": true } } },
"option": {} "option": { "operation": { "unfold": true} }
}, },
"edit": { "edit": {
"primary": "id", "primary": "id",

View file

@ -42,6 +42,7 @@ var langs = map[string]string{
"Model name": "模型名称", "Model name": "模型名称",
"Initialize project": "项目初始化", "Initialize project": "项目初始化",
"✨DONE✨": "✨完成✨", "✨DONE✨": "✨完成✨",
"NEXT:": "下一步:",
} }
// L 多语言切换 // L 多语言切换

View file

@ -1,13 +1,12 @@
package table package table
import ( import (
"fmt"
"strings" "strings"
"github.com/yaoapp/gou" "github.com/yaoapp/gou"
"github.com/yaoapp/kun/any" "github.com/yaoapp/kun/any"
"github.com/yaoapp/kun/log"
"github.com/yaoapp/kun/maps" "github.com/yaoapp/kun/maps"
"github.com/yaoapp/kun/utils"
) )
func init() { func init() {
@ -46,12 +45,7 @@ func ProcessSearch(process *gou.Process) interface{} {
// 参数表 // 参数表
process.ValidateArgNums(4) process.ValidateArgNums(4)
param := api.MergeDefaultQueryParam(process.ArgsQueryParams(1), 0, process.Sid) param := api.MergeDefaultQueryParam(process.ArgsQueryParams(1), 0, process.Sid)
log.With(log.F{"param": param}).Trace("==== ProcessSearch ============= SID: %s", process.Sid)
fmt.Println("\n==== ProcessSearch ============= SID:", process.Sid)
utils.Dump(param)
fmt.Println("==== END ProcessSearch ===============================================")
fmt.Println("")
page := process.ArgsInt(2, api.DefaultInt(1)) page := process.ArgsInt(2, api.DefaultInt(1))
pagesize := process.ArgsInt(3, api.DefaultInt(2)) pagesize := process.ArgsInt(3, api.DefaultInt(2))