+ 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/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",

View file

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

View file

@ -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))