mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			569 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			569 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package api
 | 
						|
 | 
						|
import (
 | 
						|
	"mayfly-go/internal/db/application"
 | 
						|
	"mayfly-go/internal/db/domain/entity"
 | 
						|
	"mayfly-go/pkg/ginx"
 | 
						|
	"mayfly-go/pkg/req"
 | 
						|
)
 | 
						|
 | 
						|
type DbSqlExec struct {
 | 
						|
	DbSqlExecApp application.DbSqlExec
 | 
						|
}
 | 
						|
 | 
						|
func (d *DbSqlExec) DbSqlExecs(rc *req.Ctx) {
 | 
						|
	g := rc.GinCtx
 | 
						|
	m := &entity.DbSqlExec{DbId: uint64(ginx.QueryInt(g, "dbId", 0)),
 | 
						|
		Db:    g.Query("db"),
 | 
						|
		Table: g.Query("table"),
 | 
						|
		Type:  int8(ginx.QueryInt(g, "type", 0)),
 | 
						|
	}
 | 
						|
	m.CreatorId = rc.LoginAccount.Id
 | 
						|
	rc.ResData = d.DbSqlExecApp.GetPageList(m, ginx.GetPageParam(rc.GinCtx), new([]entity.DbSqlExec))
 | 
						|
}
 |