1.0.0 • Published 2 years ago
gotapi-yaochi-client v1.0.0
import Client from "./src/Client"
import Operator from "./src/Operator";
import Operation from "./src/Operation";
let client =new Client("http://localhost:8011/yaochi/log/add",
"some-user","some-password","ts-client-test");
let operator:Operator = new Operator("renlu","黄滚","{}");
let operation:Operation = new Operation("查看资料","viewInfo","无","{}");
client.logEvent("some-uuid",operator,operation).then((data)=>{
console.log(data);
console.log(data.data);
});
1.0.0
2 years ago