Correção nos tipos

master
Leonardo Domingues 2021-12-03 10:28:21 -03:00
parent c03689b9fc
commit 6c1c483496
1 changed files with 1 additions and 2 deletions

View File

@ -96,8 +96,7 @@ func (c *Cli) ScreenClickCenter(f string) error {
err := c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/screen/clickcenter?f=%s", f), nil) err := c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/screen/clickcenter?f=%s", f), nil)
return err return err
} }
func (c *Cli) ScreenFind(f string) (ret map[string]interface{}, err error) { func (c *Cli) ScreenFind(f string) (ret []map[string]interface{}, err error) {
ret = make(map[string]interface{})
err = c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/screen/find?f=%s", f), &ret) err = c.HttpCli().JsonGet(fmt.Sprintf("/ipc/wingui/screen/find?f=%s", f), &ret)
return return
} }