mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 16:30:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			380 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			380 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package router
 | 
						|
 | 
						|
import (
 | 
						|
	"mayfly-go/internal/sys/api"
 | 
						|
	"mayfly-go/internal/sys/application"
 | 
						|
	"mayfly-go/pkg/ctx"
 | 
						|
 | 
						|
	"github.com/gin-gonic/gin"
 | 
						|
)
 | 
						|
 | 
						|
func InitSyslogRouter(router *gin.RouterGroup) {
 | 
						|
	s := &api.Syslog{
 | 
						|
		SyslogApp: application.SyslogApp,
 | 
						|
	}
 | 
						|
	sys := router.Group("syslogs")
 | 
						|
	{
 | 
						|
		sys.GET("", func(c *gin.Context) {
 | 
						|
			ctx.NewReqCtxWithGin(c).Handle(s.Syslogs)
 | 
						|
		})
 | 
						|
	}
 | 
						|
}
 |