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 公司列表请求