shop.go 403 B

1234567891011121314151617
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "lot_interlligentControl/app/controller/v1"
  5. )
  6. func ShopInItRouter(r *gin.Engine) {
  7. group := r.Group("/api")
  8. group.POST("/shop", v1.AddShop)
  9. group.DELETE("/shop", v1.DeleteShopById)
  10. group.PUT("/shop", v1.UpdateShop)
  11. group.GET("/shop", v1.GetShopById)
  12. group.GET("/shopByName", v1.GetShopByName)
  13. group.POST("/productall", v1.GetAllProduct)
  14. }