mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			404 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			404 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执行记录列表
 | 
						|
	req.NewGet("", d.DbSqlExecs).Group(db)
 | 
						|
 | 
						|
}
 |