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 } /*