fe_calendar.go 504 B

123456789101112131415
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller/fe_calendar"
  5. "hongze/hongze_yb/middleware"
  6. )
  7. func InitFeCalendar(r *gin.Engine) {
  8. rGroup := r.Group("api/fe_calendar").Use(middleware.Token(), middleware.CheckBaseAuth())
  9. rGroup.GET("/permission/list", fe_calendar.PermissionList)
  10. rGroup.GET("/permission/latest_month", fe_calendar.LastestPermissionMonth)
  11. rGroup.GET("/matter/list", fe_calendar.MatterList)
  12. rGroup.GET("/matter/detail", fe_calendar.MatterDetail)
  13. }