From 0bf349c03286be2d22a889dea68256410b4b1fd4 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Wed, 3 Apr 2024 18:08:34 -0400 Subject: [PATCH] fix: json field case --- internal/stage/model.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/stage/model.go b/internal/stage/model.go index 848e4ec..1b052d8 100644 --- a/internal/stage/model.go +++ b/internal/stage/model.go @@ -159,11 +159,11 @@ type Stage struct { } type ParserResult struct { - Score int - Comment string + Score int `json:"score"` + Comment string `json:"comment"` } type StageResult struct { - Name string - Results []ParserResult + Name string `json:"name"` + Results []ParserResult `json:"results"` }