mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
tce add mall
This commit is contained in:
parent
97cfe6a1ef
commit
ef4f0f73b6
@ -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
18
src/examples/mall/mall.go
Normal 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)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user