gitee.com/quant1x/engine@v1.8.4/datasource/dfcf/financial_reports_test.go (about) 1 package dfcf 2 3 import ( 4 "encoding/json" 5 "fmt" 6 "gitee.com/quant1x/gox/api" 7 "testing" 8 ) 9 10 func TestQuarterlyReports(t *testing.T) { 11 date := "20230928" 12 13 list, pages, err := QuarterlyReports(date, 1) 14 fmt.Println(list) 15 fmt.Println(pages) 16 fmt.Println(err) 17 } 18 19 func TestGetCacheQuarterlyReportsBySecurityCode(t *testing.T) { 20 date := "20231027" 21 code := "sh600178" 22 v := GetCacheQuarterlyReportsBySecurityCode(code, date) 23 fmt.Println(v) 24 data, _ := json.Marshal(v) 25 text := api.Bytes2String(data) 26 fmt.Println(text) 27 }