From ccc0df1ae811f1f9db95182a67f7d5992b2f4bbf Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 6 Sep 2023 17:04:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93URL=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=8F=82=E6=95=B0=E5=AE=9A=E4=B9=89totalSQL=E5=92=8Cr?= =?UTF-8?q?owsSQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/dbrest/dbrest.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/features/dbrest/dbrest.go b/features/dbrest/dbrest.go index b93d9054..758474e2 100644 --- a/features/dbrest/dbrest.go +++ b/features/dbrest/dbrest.go @@ -123,6 +123,15 @@ func GetUriSQLArray(r *http.Request) []string { } } + // 查询总数 + if totalSQL, ok := vars["totalSQL"]; ok { + sa = append(sa, totalSQL[0]) + } + // 查询列表 + if rowsSQL, ok := vars["rowsSQL"]; ok { + sa = append(sa, rowsSQL[0]) + } + log.Debug("SQL array:", sa) return sa }