From d588235461318399c43ddcd96644d2237beb07df Mon Sep 17 00:00:00 2001 From: 12975 <1297598740@qq.com> Date: Wed, 28 Jan 2026 23:04:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E7=9A=84=E5=88=9B=E5=BB=BA=E5=92=8C=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2API=E5=A4=84=E7=90=86=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/handler/transaction_handler.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/handler/transaction_handler.go b/internal/handler/transaction_handler.go index 0fa763c..fd1ef67 100644 --- a/internal/handler/transaction_handler.go +++ b/internal/handler/transaction_handler.go @@ -148,6 +148,10 @@ func (h *TransactionHandler) GetTransactions(c *gin.Context) { api.BadRequest(c, "Invalid end_date format. Use YYYY-MM-DD or RFC3339 format") return } + // If input is just a date (YYYY-MM-DD), set it to the end of that day to be inclusive + if len(endDateStr) == 10 { + endDate = time.Date(endDate.Year(), endDate.Month(), endDate.Day(), 23, 59, 59, 999999999, endDate.Location()) + } input.EndDate = &endDate }