[add] yao.env.*

This commit is contained in:
Max 2022-10-17 19:36:14 +08:00
parent eddc0793b6
commit 585aa873a3
2 changed files with 11 additions and 2 deletions

View file

@ -54,18 +54,26 @@ func init() {
gou.RegisterProcessHandler("xiang.helper.EnvSet", ProcessEnvSet)
gou.AliasProcess("xiang.helper.EnvSet", "xiang.env.Set")
gou.AliasProcess("xiang.helper.EnvSet", "yao.env.Set")
gou.RegisterProcessHandler("xiang.helper.EnvGet", ProcessEnvGet)
gou.AliasProcess("xiang.helper.EnvGet", "xiang.env.Get")
gou.AliasProcess("xiang.helper.EnvGet", "yao.env.Get")
gou.RegisterProcessHandler("xiang.helper.EnvMultiSet", ProcessEnvMultiSet)
gou.AliasProcess("xiang.helper.EnvMultiSet", "xiang.env.MultiSet")
gou.AliasProcess("xiang.helper.EnvMultiSet", "yao.env.MultiSet")
gou.RegisterProcessHandler("xiang.helper.EnvMultiGet", ProcessEnvMultiGet)
gou.AliasProcess("xiang.helper.EnvMultiGet", "xiang.env.MultiGet")
gou.AliasProcess("xiang.helper.EnvMultiGet", "yao.env.MultiGet")
gou.RegisterProcessHandler("xiang.helper.Print", ProcessPrint)
gou.AliasProcess("xiang.helper.Print", "xiang.sys.Print")
gou.RegisterProcessHandler("xiang.flow.Sleep", ProcessSleep)
gou.AliasProcess("xiang.flow.Sleep", "xiang.sys.Sleep")
gou.AliasProcess("xiang.flow.Sleep", "yao.sys.Sleep")
}

View file

@ -21,8 +21,9 @@ import (
//
// API:
// GET /api/__yao/app/setting -> Default process: yao.app.Xgen
// GET /api/__yao/app/menu -> Default process: yao.app.Menu
// GET /api/__yao/app/setting -> Default process: yao.app.Xgen
// POST /api/__yao/app/setting -> Default process: yao.app.Xgen {"sid":"xxx", "lang":"zh-hk", "time": "2022-10-10 22:00:10"}
// GET /api/__yao/app/menu -> Default process: yao.app.Menu
//
// Process:
// yao.app.Setting Return the App DSL