english_report.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. package english_report
  2. // IEnglishEmailSend 英文研报-邮件推送接口
  3. type IEnglishEmailSend interface {
  4. NewClient() (err error)
  5. SendEmail(item *EnglishReportSendEmailRequest) (ok bool, result string, err error)
  6. BatchSendEmail(list []*EnglishReportSendEmailRequest) (results []*EnglishReportSendEmailResult, err error)
  7. }
  8. // EnglishReportSendEmailRequest 英文研报-推送邮件请求体
  9. type EnglishReportSendEmailRequest struct {
  10. ReportId int `description:"英文报告ID"`
  11. EmailId int `description:"邮箱ID"`
  12. Email string `description:"邮箱地址"`
  13. Subject string `description:"邮件主题"`
  14. FromAlias string `description:"发信人昵称"`
  15. ReportTitle string `description:"报告标题"`
  16. ReportAbstract string `description:"报告摘要"`
  17. ReportContent string `description:"报告内容"`
  18. ReportShareLink string `description:"报告分享链接"`
  19. ReportTime string `description:"报告时间"`
  20. HtmlBody string `description:"模板内容主体"`
  21. }
  22. // EnglishReportSendEmailResult 英文研报-推送邮件响应体
  23. type EnglishReportSendEmailResult struct {
  24. ReportId int `description:"英文报告ID"`
  25. EmailId int `description:"邮箱ID"`
  26. Email string `description:"邮箱地址"`
  27. Ok bool `description:"是否推送成功"`
  28. SendData string `description:"请求数据-JSON"`
  29. ResultData string `description:"推送结果-JSON"`
  30. Source int `description:"服务来源:1-阿里云;2-腾讯云"`
  31. }