mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
21 lines
476 B
Go
21 lines
476 B
Go
package api
|
|
|
|
import (
|
|
"mayfly-go/internal/db/application"
|
|
"mayfly-go/internal/db/domain/entity"
|
|
"mayfly-go/pkg/biz"
|
|
"mayfly-go/pkg/ginx"
|
|
"mayfly-go/pkg/req"
|
|
)
|
|
|
|
type DbSqlExec struct {
|
|
DbSqlExecApp application.DbSqlExec
|
|
}
|
|
|
|
func (d *DbSqlExec) DbSqlExecs(rc *req.Ctx) {
|
|
queryCond, page := ginx.BindQueryAndPage(rc.GinCtx, new(entity.DbSqlExecQuery))
|
|
res, err := d.DbSqlExecApp.GetPageList(queryCond, page, new([]entity.DbSqlExec))
|
|
biz.ErrIsNil(err)
|
|
rc.ResData = res
|
|
}
|