replaycli-go/api/autoit/cli.go

25 lines
442 B
Go
Raw Normal View History

2021-12-15 13:44:27 +00:00
package autoit
import (
"go.digitalcircle.com.br/open/replaycli-go/api"
)
type Cli struct {
*api.ApiCli
}
func NewCli() *Cli {
ret := &Cli{ApiCli: api.NewApiCli()}
return ret
}
2021-12-16 18:03:40 +00:00
func (c *Cli) Test() (ret []byte, err error) {
ret, err = c.HttpCli().RawPost("/ipc/autoit/test", nil)
2021-12-15 13:44:27 +00:00
return ret, err
}
func (c *Cli) Do(data string) (ret string, err error) {
err = c.HttpCli().JsonPost("/ipc/autoit/do", data, &ret)
return ret, err
}