diff --git a/src/examples/bench.go b/src/examples/bench.go index 953f7692..086bef2e 100644 --- a/src/examples/bench.go +++ b/src/examples/bench.go @@ -17,10 +17,12 @@ import ( _ "contexts/cli" //管理中心 c "contexts/ctx" //模块中心 _ "contexts/web" //应用中心 + // 应用层 _ "examples/code" //代码中心 _ "examples/jira" //任务中心 _ "examples/lark" //会议中心 + _ "examples/mall" //交易中心 _ "examples/wiki" //文档中心 ) diff --git a/src/examples/mall/mall.go b/src/examples/mall/mall.go new file mode 100644 index 00000000..1fc7ba97 --- /dev/null +++ b/src/examples/mall/mall.go @@ -0,0 +1,18 @@ +package mall + +import ( + "contexts/ctx" + "contexts/web" +) + +var Index = &ctx.Context{Name: "mall", Help: "交易中心", + Caches: map[string]*ctx.Cache{}, + Configs: map[string]*ctx.Config{}, + Commands: map[string]*ctx.Command{}, +} + +func init() { + mall := &web.WEB{} + mall.Context = Index + web.Index.Register(Index, mall) +}