test 完善

This commit is contained in:
bense
2023-09-24 08:50:00 +08:00
parent f5bf41bf1d
commit bfff0f62be
9 changed files with 56 additions and 82 deletions

View File

@@ -63,6 +63,7 @@ func NewGetSecurityBars() *GetSecurityBars {
obj.contentHex = "00000000000000000000"
return obj
}
func (obj *GetSecurityBars) SetParams(req *GetSecurityBarsRequest) {
obj.request = req
obj.request.I = 1
@@ -87,9 +88,9 @@ func (obj *GetSecurityBars) 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 *GetSecurityBars) UnSerialize(header interface{}, data []byte) error {
obj.respHeader = header.(*RespHeader)