fix bug
This commit is contained in:
@@ -119,9 +119,10 @@ func (c *TushareClient) Do(req TushareReq, fieldsVals []map[string]string) (*Tus
|
|||||||
return tushareResp.Data, nil
|
return tushareResp.Data, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do 执行 Tushare API 请求
|
// Exec 执行 Tushare API 请求
|
||||||
// req: 请求参数,包含 API 名称、参数等
|
// ApiName: API 名称
|
||||||
// fieldsVals: 字段配置列表,每个元素是一个 map,key 为字段名,value 为字段中文描述
|
// fields: 字段列表,用逗号分隔
|
||||||
|
// Params: 请求参数
|
||||||
// 返回:响应数据和错误信息
|
// 返回:响应数据和错误信息
|
||||||
func (c *TushareClient) Exec(ApiName string, fields string, Params map[string]any) (*TushareRespData, error) {
|
func (c *TushareClient) Exec(ApiName string, fields string, Params map[string]any) (*TushareRespData, error) {
|
||||||
fieldsList := strings.Split(fields, ",")
|
fieldsList := strings.Split(fields, ",")
|
||||||
|
|||||||
Reference in New Issue
Block a user