Added datasync
parent
fdb5553bd7
commit
7f4979ab6e
|
@ -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
|
||||
}
|
|
@ -58,6 +58,12 @@ func (c *Cli) ScreenFind(f string) (ret map[string]interface{}, err error) {
|
|||
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) {
|
||||
ret = make(map[string]interface{})
|
||||
err = c.cli.HttpJsonGet(fmt.Sprintf("/ipc/wingui/screen/wait?f=%s&m=%d", f, m), &ret)
|
||||
|
|
Loading…
Reference in New Issue