From 37f69af50f54e1a15cbfbf8d652fb1042618fb78 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 01 九月 2020 17:56:12 +0800
Subject: [PATCH] add user isAdmin
---
controllers/car.go | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/controllers/car.go b/controllers/car.go
index 15aed3d..63cf1a7 100644
--- a/controllers/car.go
+++ b/controllers/car.go
@@ -266,6 +266,18 @@
c.ServeJSON()
}
+// @router /spaceUser [get]
+func (c *CarController) SpaceUser() {
+ sv := service.NewCarService()
+ spaceUser := sv.FindHikSpaceUser()
+ c.Data["json"] = code.Code{
+ Success: true,
+ Status: http.StatusOK,
+ Data: spaceUser,
+ }
+ c.ServeJSON()
+}
+
// @router /pushLog [get]
func (c *CarController) PushLog() {
st := c.GetString("startTime")
--
Gitblit v1.8.0