mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
feat: 新增系统操作日志&其他优化
This commit is contained in:
21
server/internal/sys/router/syslog.go
Normal file
21
server/internal/sys/router/syslog.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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)
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user