Added datasync

Alteracoes_Samuel
Paulo Simão 2021-10-03 19:32:57 -03:00
parent fdb5553bd7
commit 7f4979ab6e
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package datasync
import (
"go.digitalcircle.com.br/open/replaycli-go/api"
)
type Cli struct {
cli *api.Cli
}
func (c *Cli) HttpCli() *api.Cli {
return c.cli
}
func (c *Cli) New(i interface{}) (string, error) {
res := ""
err := c.cli.HttpJsonPost("/ipc/datasyncreportmgr/new", i, &res)
return res, err
}
func NewCli() *Cli {
ret := &Cli{cli: api.NewCli()}
return ret
}

View File

@ -58,6 +58,12 @@ func (c *Cli) ScreenFind(f string) (ret map[string]interface{}, err error) {
return return
} }
func (c *Cli) KBTap(t string) (map[string]interface{}, error) {
ret := make(map[string]interface{})
err := c.cli.HttpJsonGet(fmt.Sprintf("/ipc/wingui/kb/tap?str=%s", t), &ret)
return ret, err
}
func (c *Cli) ScreenWait(f string, m int) (ret map[string]interface{}, err error) { func (c *Cli) ScreenWait(f string, m int) (ret map[string]interface{}, err error) {
ret = make(map[string]interface{}) ret = make(map[string]interface{})
err = c.cli.HttpJsonGet(fmt.Sprintf("/ipc/wingui/screen/wait?f=%s&m=%d", f, m), &ret) err = c.cli.HttpJsonGet(fmt.Sprintf("/ipc/wingui/screen/wait?f=%s&m=%d", f, m), &ret)