Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user