feat: add tool

This commit is contained in:
fuzhongyun 2025-12-31 17:37:54 +08:00
parent 4e974efc1c
commit 877403fc97
1 changed files with 7 additions and 0 deletions

View File

@ -536,6 +536,13 @@ func (d *DingTalkBotBiz) handleReport(ctx context.Context, rec *entitys.Recogniz
return _err
}
reports = append(reports, repo...)
case "report_daily_recharge":
product := strings.Split(group.ProductName, ",")
repo, _err := d.rechargeDailyReport(ctx, t, product, nil)
if _err != nil || len(repo) == 0 {
return _err
}
reports = append(reports, repo...)
default:
return fmt.Errorf("未找到的报表:%s", rec.Match.Index)
}