From dabfaca1f0c65cb6837a7d03f54d51c0741d902c Mon Sep 17 00:00:00 2001 From: shaoying Date: Fri, 12 Jun 2020 07:16:10 +0800 Subject: [PATCH] add team/work --- core/team/work.go | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 core/team/work.go diff --git a/core/team/work.go b/core/team/work.go new file mode 100644 index 00000000..fe9b8b3f --- /dev/null +++ b/core/team/work.go @@ -0,0 +1,33 @@ +package team + +import ( + "github.com/shylinux/icebergs" + "github.com/shylinux/icebergs/base/web" +) + +func init() { + Index.Register(&ice.Context{Name: "工作", Help: "工作", + Commands: map[string]*ice.Command{ + "项目开发": {Name: "项目开发", Help: "项目开发", Hand: func(m *ice.Message, c *ice.Context, key string, arg ...string) { + + }}, + "项目测试": {Name: "项目测试", Help: "项目测试", Hand: func(m *ice.Message, c *ice.Context, key string, arg ...string) { + + }}, + }, + }, &web.Frame{}) + + Index.Register(&ice.Context{Name: "创业", Help: "创业", + Commands: map[string]*ice.Command{ + "项目调研": {Name: "项目调研", Help: "项目调研", Hand: func(m *ice.Message, c *ice.Context, key string, arg ...string) { + + }}, + "项目开发": {Name: "项目开发", Help: "项目开发", Hand: func(m *ice.Message, c *ice.Context, key string, arg ...string) { + m.Echo("hello world") + }}, + "项目测试": {Name: "项目测试", Help: "项目测试", Hand: func(m *ice.Message, c *ice.Context, key string, arg ...string) { + + }}, + }, + }, &web.Frame{}) +}