From 4a8d29f57f1a4a3906acc8404d97fbcda4fbfb0f Mon Sep 17 00:00:00 2001 From: xuyang Date: Tue, 17 Dec 2024 15:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E4=BD=93=E5=88=97=E8=A1=A8=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E7=BB=9F=E4=B8=80=E7=A4=BE=E4=BC=9A=E4=BF=A1=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/mkt/client_test.go | 7 +++++++ services/mkt/subject.go | 1 + 2 files changed, 8 insertions(+) diff --git a/services/mkt/client_test.go b/services/mkt/client_test.go index 721a581..91cb42e 100644 --- a/services/mkt/client_test.go +++ b/services/mkt/client_test.go @@ -1,6 +1,7 @@ package mkt import ( + "encoding/json" "fmt" "testing" ) @@ -18,5 +19,11 @@ func TestSubjectList(t *testing.T) { panic(err) } + marshal, err := json.Marshal(list.Data) + if err != nil { + panic(err) + } + + fmt.Println(string(marshal)) fmt.Println(list.Status, list.Code, list.Msg, list.Data) } diff --git a/services/mkt/subject.go b/services/mkt/subject.go index 8177248..43af1ef 100644 --- a/services/mkt/subject.go +++ b/services/mkt/subject.go @@ -33,6 +33,7 @@ type Data struct { State int `json:"state"` System string `json:"system"` Type int `json:"type"` + Uscc string `json:"uscc"` } // CreateSubjectListRequest 公司列表请求