From eaf1da6b55de31feb35a1e5f7ac09ae3782c73ac Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 23 五月 2019 10:57:08 +0800
Subject: [PATCH] fix deliver.NewConsumer
---
api_test.go | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/api_test.go b/api_test.go
index 639a7e3..aa0a66d 100644
--- a/api_test.go
+++ b/api_test.go
@@ -1,6 +1,7 @@
package dbapi
import (
+ "dbapi/protomsg"
"fmt"
"testing"
)
@@ -13,7 +14,7 @@
func TestAreaAdd(t *testing.T) {
var api AreaApi
- var area = Area{
+ var area = protomsg.Area{
Parentid: 0,
Name: "鍝堝搱鍝�",
}
@@ -24,7 +25,7 @@
func TestAreaUpdate(t *testing.T) {
var api AreaApi
- var area = Area{
+ var area = protomsg.Area{
Id: 1,
Name: "鍖哄煙鏇存柊娴嬭瘯",
Parentid: 0,
@@ -67,4 +68,10 @@
var api TaskApi
taskInfos := api.FindAll()
fmt.Println(taskInfos)
+}
+
+func TestCameraApi_FindAll(t *testing.T) {
+ var api CameraApi
+ cameras := api.FindAll()
+ fmt.Println(cameras)
}
\ No newline at end of file
--
Gitblit v1.8.0