feat: add tool
This commit is contained in:
parent
4e974efc1c
commit
877403fc97
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue