package router import ( "github.com/gin-gonic/gin" "stat/api/authorityApi" ) func authorityRouter(router *gin.RouterGroup) { group := router.Group("/authority") { group.POST("/list", authorityApi.RoleList) group.POST("/add", authorityApi.AddRole) group.POST("/update", authorityApi.UpdateRole) group.DELETE("/del", authorityApi.DelRole) } }