` 和 `
`。严禁使用 `\n`、`` 或其他标签。
3. **Naming Convention**:
- 字典 Key/属性名: 必须使用 **PascalCase** (如: Recipient, EmailSubject, TextBody)。
- 内部逻辑变量: 使用 **camelCase**。
4. **Logic**:
- 按请求中的 `to` 字段进行分组。
- 分析每组邮件的业务关联性,生成 [当日概览]、[详情摘要]、[分析结论]。
## Output Schema
[
{{
""Recipient"": ""string"",
""EmailSubject"": ""每日情报分析报告"",
""TextBody"": ""[收件人:...]
[核心概览]
...分析内容...
[分析结论]
...""
}}
]
## Input Data
{rawDataJson}
## Execution
Now, output the JSON array based on the logic above. No prose, no chat, just the JSON block.";
}
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 TextBody { get; set; } = string.Empty;
}
}
}