package router import ( "91porn-server/web/api/authorctrl" "91porn-server/web/api/rolectrl" "github.com/gin-gonic/gin" ) func authorRouter(router *gin.RouterGroup) { group := router.Group("/author") { group.GET("/list", authorctrl.List) group.POST("/update", authorctrl.Update) group.POST("/add", authorctrl.Add) group.DELETE("/del", authorctrl.Delete) } role := router.Group("/role") { role.POST("/edit", rolectrl.Edit) } }