mirror of
https://github.com/bensema/gotdx.git
synced 2025-11-21 02:45:33 +08:00
test 完善
This commit is contained in:
@@ -48,6 +48,7 @@ func NewGetHistoryMinuteTimeData() *GetHistoryMinuteTimeData {
|
||||
obj.contentHex = ""
|
||||
return obj
|
||||
}
|
||||
|
||||
func (obj *GetHistoryMinuteTimeData) SetParams(req *GetHistoryMinuteTimeDataRequest) {
|
||||
obj.request = req
|
||||
}
|
||||
@@ -71,9 +72,9 @@ func (obj *GetHistoryMinuteTimeData) Serialize() ([]byte, error) {
|
||||
}
|
||||
|
||||
// 结果数据都是\n,\t分隔的中文字符串,比如查询K线数据,返回的结果字符串就形如
|
||||
///“时间\t开盘价\t收盘价\t最高价\t最低价\t成交量\t成交额\n
|
||||
///20150519\t4.644000\t4.732000\t4.747000\t4.576000\t146667487\t683638848.000000\n
|
||||
///20150520\t4.756000\t4.850000\t4.960000\t4.756000\t353161092\t1722953216.000000”
|
||||
// /“时间\t开盘价\t收盘价\t最高价\t最低价\t成交量\t成交额\n
|
||||
// /20150519\t4.644000\t4.732000\t4.747000\t4.576000\t146667487\t683638848.000000\n
|
||||
// /20150520\t4.756000\t4.850000\t4.960000\t4.756000\t353161092\t1722953216.000000”
|
||||
func (obj *GetHistoryMinuteTimeData) UnSerialize(header interface{}, data []byte) error {
|
||||
obj.respHeader = header.(*RespHeader)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user