This commit is contained in:
2026-05-01 11:28:06 +08:00
parent 3c8b686980
commit 01e5af3a0f

View File

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