Files
mayfly-go/server/internal/db/router/db_sql_exec.go
2024-02-29 22:12:50 +08:00

22 lines
385 B
Go

package router
import (
"mayfly-go/internal/db/api"
"mayfly-go/pkg/biz"
"mayfly-go/pkg/ioc"
"mayfly-go/pkg/req"
"github.com/gin-gonic/gin"
)
func InitDbSqlExecRouter(router *gin.RouterGroup) {
db := router.Group("/dbs/sql-execs")
d := new(api.DbSqlExec)
biz.ErrIsNil(ioc.Inject(d))
// 获取所有数据库sql执行记录列表
req.NewGet("", d.DbSqlExecs).Group(db)
}