From ef4f0f73b660e102c1a490a88de1ec59d8f4d3eb Mon Sep 17 00:00:00 2001 From: shaoying Date: Thu, 25 Oct 2018 23:13:11 +0800 Subject: [PATCH] tce add mall --- src/examples/bench.go | 2 ++ src/examples/mall/mall.go | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/examples/mall/mall.go 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) +}