123456789101112131415161718192021222324 |
- package router
- import (
- "cold-delivery/common/middleware"
- "github.com/gin-gonic/gin"
- "cold-delivery/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)
- }
- }
|