Files
mayfly-go/server/internal/db/router/db_sql_exec.go

22 lines
385 B
Go
Raw Normal View History

package router
import (
2022-09-09 18:26:08 +08:00
"mayfly-go/internal/db/api"
2024-01-21 22:52:20 +08:00
"mayfly-go/pkg/biz"
"mayfly-go/pkg/ioc"
2023-01-14 16:29:52 +08:00
"mayfly-go/pkg/req"
"github.com/gin-gonic/gin"
)
func InitDbSqlExecRouter(router *gin.RouterGroup) {
db := router.Group("/dbs/sql-execs")
2024-01-21 22:52:20 +08:00
d := new(api.DbSqlExec)
biz.ErrIsNil(ioc.Inject(d))
// 获取所有数据库sql执行记录列表
req.NewGet("", d.DbSqlExecs).Group(db)
}