Merge pull request #207 from trheyi/main

[add] yao.env.*
This commit is contained in:
Max 2022-10-17 19:36:43 +08:00 committed by GitHub
commit 2cbd5901a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

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

View file

@ -21,8 +21,9 @@ import (
// //
// API: // API:
// GET /api/__yao/app/setting -> Default process: yao.app.Xgen // GET /api/__yao/app/setting -> Default process: yao.app.Xgen
// GET /api/__yao/app/menu -> Default process: yao.app.Menu // 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: // Process:
// yao.app.Setting Return the App DSL // yao.app.Setting Return the App DSL