company.go 501 B

1234567891011121314151617
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller/company"
  5. "hongze/hongze_yb/middleware"
  6. )
  7. func InitCompany(r *gin.Engine) {
  8. rGroup := r.Group("api/company").Use(middleware.Token())
  9. {
  10. rGroup.GET("/getPermissionList", company.GetHomeFiccPermissions)
  11. rGroup.GET("/permission/tree", company.GetPermissionTree)
  12. rGroup.GET("/permission/bind", company.GetBindFiccPermissions)
  13. rGroup.GET("/permission/commodities", company.GetCommoditiesBindFiccPermissions)
  14. }
  15. }