, , , class, id。
- 样式: 仅在 中使用 style=""color:#2563eb""。
## Constraints
- 输出必须是合法的 JSON 数组,严禁任何前言或后缀文字。
- 属性名:Recipient, EmailSubject, HtmlBody。
- HtmlBody 必须是完整的 HTML 字符串,注意 JSON 内部引号转义。
## Input Data (JSON)
{rawDataJson}
";
}
private static async Task NotifyEmptyEmails(List userIds)
{
var userEmails = await _sqlSugar.Queryable().Where(x => x.IsDel == 0 && userIds.Contains(x.Id)).Select(x => x.Email).ToListAsync();
if (userEmails.Any())
{
await _qiYeWeChatApiService.EmailSendAsync(new EmailRequestDto
{
ToEmails = userEmails,
Subject = $"{DateTime.Now:yyyy-MM-dd} - 邮件汇总",
Body = "昨日暂未收到有效邮件。"
});
}
}
public class AiSummaryResult
{
public string Recipient { get; set; } = string.Empty;
public string EmailSubject { get; set; } = string.Empty;
public string HtmlBody { get; set; } = string.Empty;
}
}
}