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

22 lines
518 B
Go
Raw Normal View History

package api
import (
2022-09-09 18:26:08 +08:00
"mayfly-go/internal/db/application"
"mayfly-go/internal/db/domain/entity"
"mayfly-go/pkg/biz"
"mayfly-go/pkg/ginx"
2023-01-14 16:29:52 +08:00
"mayfly-go/pkg/req"
)
type DbSqlExec struct {
DbSqlExecApp application.DbSqlExec
}
2023-01-14 16:29:52 +08:00
func (d *DbSqlExec) DbSqlExecs(rc *req.Ctx) {
queryCond, page := ginx.BindQueryAndPage(rc.GinCtx, new(entity.DbSqlExecQuery))
queryCond.CreatorId = rc.LoginAccount.Id
res, err := d.DbSqlExecApp.GetPageList(queryCond, page, new([]entity.DbSqlExec))
biz.ErrIsNil(err)
rc.ResData = res
}