From 991afecdb88a87f2be3e1fa5459307693ef73b31 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 13 六月 2019 20:39:46 +0800
Subject: [PATCH] test

---
 api_test.go |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/api_test.go b/api_test.go
index 620a255..eefcf4c 100644
--- a/api_test.go
+++ b/api_test.go
@@ -10,7 +10,7 @@
 
 func TestGetLocalCameraTree(t *testing.T) {
 	var api AreaApi
-	body := api.GetLocalCameraTree(0, 0, "c")
+	body := api.GetLocalCameraTree("0", "0", "c")
 	fmt.Println(body)
 }
 
@@ -112,4 +112,17 @@
 	var api CameraApi
 	cameras := api.FindAll()
 	fmt.Println(cameras)
+}
+
+//鏌ユ壘鎵�鏈夌殑澶氳竟褰�
+func TestCameraApi_FindAllPolygons(t *testing.T) {
+	var api CameraApi
+	data := api.FindAllPolygons()
+	fmt.Println("polygons:",data)
+}
+
+func TestCameraApi_FindAllTimeRules(t *testing.T) {
+	var api CameraApi
+	_, rules := api.FindAllTimeRules()
+	fmt.Println("timeRules:",rules)
 }
\ No newline at end of file

--
Gitblit v1.8.0