Files
hjsq_server/web/router/author.go
T
2026-10-08 16:50:13 +08:00

23 lines
443 B
Go

package router
import (
"91jd-server/web/api/authorctrl"
"91jd-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)
}
}