1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 17:44:05 +08:00
This commit is contained in:
shylinux 2020-08-14 10:50:07 +08:00
parent bb560a9f87
commit f6839426af
2 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ var Index = &ice.Context{Name: ES, Help: "搜索",
"GET": {Name: "GET 查看:button cmd=/", Help: "命令", Action: map[string]*ice.Action{}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
if pod := m.Option("_pod"); pod != "" {
m.Option("_pod", "")
m.Cmdy(web.SPACE, pod, "web.code.es.command", arg)
m.Cmdy(web.SPACE, pod, "web.code.es.GET", arg)
return
}

View File

@ -27,12 +27,12 @@ curl http://localhost:9200
`
# field command web.code.es.command option `{ _pod centos.remote }`
field GET web.code.es.GET style command args `[ /index_test/test_type/1 ]`
field GET web.code.es.GET style command args `[ /index_test/test_type/1 ]` option `{ _pod centos.remote }`
field CMD web.code.es.CMD style command args `[ POST /index_test/test_type/1 ] ` content `{
"name": "lisi",
"age" : "12"
}`
}` option `{ _pod centos.remote }`
field es web.code.es.es
field install web.code.install