1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00

tce add mall

This commit is contained in:
shaoying 2018-10-25 23:13:11 +08:00
parent 97cfe6a1ef
commit ef4f0f73b6
2 changed files with 20 additions and 0 deletions

View File

@ -17,10 +17,12 @@ import (
_ "contexts/cli" //管理中心
c "contexts/ctx" //模块中心
_ "contexts/web" //应用中心
// 应用层
_ "examples/code" //代码中心
_ "examples/jira" //任务中心
_ "examples/lark" //会议中心
_ "examples/mall" //交易中心
_ "examples/wiki" //文档中心
)

18
src/examples/mall/mall.go Normal file
View File

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