serviceNode.go 409 B

123456789101112131415
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "lot_interlligentControl/app/controller/v1"
  5. )
  6. func ServiceNodeRouter(r *gin.Engine) {
  7. group := r.Group("/api")
  8. group.GET("/serviceNode", v1.GetServiceNodesById)
  9. group.DELETE("/serviceNode", v1.DeleteServiceNodesById)
  10. group.PUT("/serviceNode", v1.UpdateServiceNode)
  11. group.POST("/serviceNode", v1.AddServiceNode)
  12. group.GET("/getNode", v1.GetNode)
  13. }