From 27511c11c687eb77fa6adcee4b6b7ab8a19f80e8 Mon Sep 17 00:00:00 2001 From: buty4649 Date: Tue, 21 Apr 2026 13:21:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20SystemFormGroup.ID=20=E3=82=92=20int=20?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xp system form list 実行時に form_group.id のデコードで cannot unmarshal number into Go struct field ... of type string エラーが発生していたため、実 API のレスポンスに合わせて 型を string から int に修正する。 Co-Authored-By: Claude Opus 4.7 --- internal/xpoint/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/xpoint/client.go b/internal/xpoint/client.go index 7d66347..37fc440 100644 --- a/internal/xpoint/client.go +++ b/internal/xpoint/client.go @@ -163,7 +163,7 @@ type SystemForm struct { } type SystemFormGroup struct { - ID string `json:"id"` + ID int `json:"id"` Name string `json:"name"` FormCount int `json:"form_count"` Form []SystemForm `json:"form"`