mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
24 lines
469 B
Go
24 lines
469 B
Go
package router
|
|
|
|
import (
|
|
"mayfly-go/internal/db/api"
|
|
"mayfly-go/internal/db/application"
|
|
"mayfly-go/pkg/req"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func InitDbSqlExecRouter(router *gin.RouterGroup) {
|
|
db := router.Group("/dbs/:dbId/sql-execs")
|
|
{
|
|
d := &api.DbSqlExec{
|
|
DbSqlExecApp: application.GetDbSqlExecApp(),
|
|
}
|
|
// 获取所有数据库sql执行记录列表
|
|
db.GET("", func(c *gin.Context) {
|
|
rc := req.NewCtxWithGin(c)
|
|
rc.Handle(d.DbSqlExecs)
|
|
})
|
|
}
|
|
}
|