refactor: 参数绑定等优化

This commit is contained in:
meilin.huang
2026-02-07 13:12:07 +08:00
parent 403d1c45e5
commit 9bb9861d88
61 changed files with 762 additions and 436 deletions

View File

@@ -26,7 +26,7 @@ func (d *DbSqlExec) ReqConfs() *req.Confs {
}
func (d *DbSqlExec) DbSqlExecs(rc *req.Ctx) {
queryCond := req.BindQuery[*entity.DbSqlExecQuery](rc)
queryCond := req.BindQuery[entity.DbSqlExecQuery](rc)
if statusStr := rc.Query("status"); statusStr != "" {
queryCond.Status = collx.ArrayMap[string, int8](strings.Split(statusStr, ","), func(val string) int8 {
return cast.ToInt8(val)