From e65ac973c73887505e9e788170793dbcf62f0fb2 Mon Sep 17 00:00:00 2001 From: a7458969 <290198252@qq.com> Date: Wed, 25 Mar 2020 00:30:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/hardware.go | 19 +++++++++++++++---- db/elasticEngine.go | 1 + 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/controller/hardware.go b/controller/hardware.go index bea4dd5..bf01d40 100644 --- a/controller/hardware.go +++ b/controller/hardware.go @@ -3,7 +3,7 @@ package controller import ( "github.com/gin-gonic/gin" - "time" + ) @@ -13,8 +13,19 @@ func AddHardware(c *gin.Context) { c.JSON(200,resp) }() - - resp.Data = docTypes + resp.Data = nil resp.Msg = "OK" resp.Status = 0 -} \ No newline at end of file +} + +func DeleteHardWare(c *gin.Context) { + +} + +func UpdateHardWare(c *gin.Context) { + +} + +func ReadHardWare(c *gin.Context) { + +} diff --git a/db/elasticEngine.go b/db/elasticEngine.go index d143f77..aa48453 100644 --- a/db/elasticEngine.go +++ b/db/elasticEngine.go @@ -61,6 +61,7 @@ func (p *ElkEngine)Delete(index string,types string,id string) error{ }else{ return errors.New(ERROR_PTR) } + return nil } /*