面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

big_data_router.go 1.1 KiB

8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
6 months ago
6 months ago
5 months ago
8 months ago
12345678910111213141516171819202122232425262728293031323334
  1. package router
  2. import (
  3. "applet/app/bigData/hdl"
  4. "applet/app/bigData/mw"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func BigDataInit(r *gin.RouterGroup) {
  8. r.POST("/test", hdl.Demo)
  9. r.POST("/login", hdl.Login)
  10. r.Use(mw.Auth) //检测登录状态
  11. r.GET("/userInfo", hdl.UserInfo)
  12. rData(r.Group("data")) //数据接口
  13. }
  14. func rData(r *gin.RouterGroup) {
  15. r.GET("/leftData", hdl.LeftData) //左侧数据
  16. r.POST("/rightData", hdl.RightData) //右侧数据
  17. r.GET("/making_data", hdl.MakingData) //制作区数据
  18. r.GET("/baking_data", hdl.BakingData) //烘焙区数据
  19. r.GET("/sorting_data", hdl.SortingData) //分拣区数据
  20. r.GET("/new_order_notice", hdl.NewOrderNotice) //新订单提醒
  21. r.GET("/new_order_info_notice", hdl.NewOrderInfoNotice) //新订单提醒
  22. r.GET("/new_sorting_cate", hdl.NewSortingCate) //分拣区学校分类
  23. r.POST("/new_sorting_data", hdl.NewSortingData) //分拣区数据
  24. r.GET("/new_sorting_goods_cate", hdl.NewSortingGoodsCate) //分拣区 按商品
  25. r.POST("/new_sorting_goods_data", hdl.NewSortingGoodsData) //分拣区 按商品 数据
  26. r.GET("/notice", hdl.Notice)
  27. }