面包店
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.
 
 
 
 
 

22 line
455 B

  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. }