FindEventList_test.go 678 B

123456789101112131415161718192021222324252627
  1. package v1
  2. import (
  3. "metawant.greentech.com.cn/gaoyagang/gt-common/datacenter_client"
  4. "metawant.greentech.com.cn/gaoyagang/gt-common/httplib"
  5. "testing"
  6. )
  7. func TestDcApi_FindEventList(t *testing.T) {
  8. var c = NewDcApi(ClientOptions{
  9. HTTPSettings: httplib.HTTPSettings{},
  10. ServerIp: "127.0.0.1:8080",
  11. AppName: "simulations",
  12. AppSecret: "e3fc084fda3d2a6628b9ce28abf21243",
  13. })
  14. data, err := c.FindEventList(datacenter_client.FindEventListReq{
  15. ProjectId: 92,
  16. Name: "FLUID_LEVEL_CHANGE",
  17. DeviceCode: "LIT-54061A",
  18. Item: "asdfasdf",
  19. Stime: "2024-06-29 00:00:00",
  20. Etime: "2024-06-29 14:00:00",
  21. })
  22. t.Log(data)
  23. t.Log(err)
  24. }