2021-10-03 22:32:57 +00:00
|
|
|
package datasync
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.digitalcircle.com.br/open/replaycli-go/api"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Cli struct {
|
2021-10-11 14:53:44 +00:00
|
|
|
*api.ApiCli
|
2021-10-03 22:32:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Cli) New(i interface{}) (string, error) {
|
|
|
|
res := ""
|
2021-10-11 14:53:44 +00:00
|
|
|
err := c.HttpCli().JsonPost("/ipc/datasyncreportmgr/new", i, &res)
|
2021-10-03 22:32:57 +00:00
|
|
|
return res, err
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewCli() *Cli {
|
2021-10-11 14:53:44 +00:00
|
|
|
ret := &Cli{ApiCli: api.NewApiCli()}
|
2021-10-03 22:32:57 +00:00
|
|
|
return ret
|
|
|
|
}
|