package router import ( "Medical_OAuth/common/middleware" "github.com/gin-gonic/gin" "Medical_OAuth/app/admin/controller" jwt "gogs.baozhida.cn/zoie/OAuth-core/pkg/jwtauth" ) func init() { routerCheckRole = append(routerCheckRole, registerSysOperaLogRouter) } // 需认证的路由代码 func registerSysOperaLogRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) { cont := controller.SysOperaLogController{} r := v1.Group("/sys-opera-log").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole()) { r.GET("", cont.GetPage) r.GET("/:id", cont.Get) r.DELETE("", cont.Delete) } }