gotapi-yaochi-client
v1.0.0
Published
typescript client for yaochi
Downloads
1
Readme
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);
});