Merge branch 'master' of ssh://gitea.digitalcircle.com.br:2222/open/replaycli-go

master
Leonardo Domingues 2021-12-16 11:08:16 -03:00
commit 18173ed486
1 changed files with 5 additions and 4 deletions

View File

@ -13,12 +13,13 @@ func NewCli() *Cli {
return ret return ret
} }
func (c *Cli) Test() (ret string, err error) { func (c *Cli) Test() (ret []byte, err error) {
err = c.HttpCli().JsonPost("/ipc/ahk/test", nil, &ret) ret, err = c.HttpCli().RawPost("/ipc/ahk/test", nil)
return ret, err return ret, err
} }
func (c *Cli) Do(data string) (ret string, err error) { func (c *Cli) Do(data string) (ret []byte, err error) {
err = c.HttpCli().JsonPost("/ipc/ahk/do", data, &ret) i := []byte(data)
ret, err = c.HttpCli().RawPost("/ipc/ahk/do", i)
return ret, err return ret, err
} }