From c54ba5a4707c4756432a97952ac2003d10e9a544 Mon Sep 17 00:00:00 2001 From: fish Date: Thu, 7 May 2026 21:41:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8C=BA=E9=97=B4=E6=89=93?= =?UTF-8?q?=E5=88=86=20422=20=E9=94=99=E8=AF=AF=EF=BC=9AGo=20=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E6=96=B0=E5=A2=9E=20runRangeRequest=20=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E4=BD=93=E6=AD=A3=E7=A1=AE=E9=80=8F=E4=BC=A0=20start?= =?UTF-8?q?=5Fdate/end=5Fdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- web/backend/internal/handlers/run.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/backend/internal/handlers/run.go b/web/backend/internal/handlers/run.go index 3baa569..34b58b6 100644 --- a/web/backend/internal/handlers/run.go +++ b/web/backend/internal/handlers/run.go @@ -56,8 +56,14 @@ func (d *Deps) RunBatch(w http.ResponseWriter, r *http.Request) { _, _ = io.Copy(w, resp.Body) } +type runRangeRequest struct { + Symbol string `json:"symbol,omitempty"` + StartDate string `json:"start_date,omitempty"` + EndDate string `json:"end_date,omitempty"` +} + func (d *Deps) RunRange(w http.ResponseWriter, r *http.Request) { - var req runRequest + var req runRangeRequest if err := json.NewDecoder(r.Body).Decode(&req); err != nil { writeErr(w, http.StatusBadRequest, "invalid json") return