|
@@ -0,0 +1,28 @@
|
|
|
|
+package v1
|
|
|
|
+
|
|
|
|
+import (
|
|
|
|
+ "metawant.greentech.com.cn/gaoyagang/gt-common/datacenter_client"
|
|
|
|
+ "testing"
|
|
|
|
+)
|
|
|
|
+
|
|
|
|
+//var d = NewDcApi(ClientOptions{
|
|
|
|
+// HTTPSettings: httplib.HTTPSettings{},
|
|
|
|
+// ServerIp: "47.96.12.136:8788",
|
|
|
|
+// AppName: "add-test1",
|
|
|
|
+// AppSecret: "7395fb0cfasyvasd705a2db44a19851a3dbd77f",
|
|
|
|
+//})
|
|
|
|
+
|
|
|
|
+func TestDcApi_GetWorkingRoByCode(t *testing.T) {
|
|
|
|
+ res, err := d.GetWorkingRoByCode(datacenter_client.DcWorkingReq{
|
|
|
|
+ ProjectId: 92,
|
|
|
|
+ DeviceCode: "RO-5001A",
|
|
|
|
+ Stime: "2024-05-21 12:00:00",
|
|
|
|
+ Etime: "2024-05-21 14:00:00",
|
|
|
|
+ Page: 1,
|
|
|
|
+ PageSize: 60,
|
|
|
|
+ Order: "id desc",
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ t.Log(res.Data.List)
|
|
|
|
+ t.Log(err)
|
|
|
|
+}
|