public static class TemplateAttachment.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
TemplateAttachment.Builder |
attachmentType(Integer attachmentType)
附件类型
示例值:1
|
TemplateAttachment.Builder |
attachmentType(TemplateAttachmentAttachmentTypeEnum attachmentType)
附件类型
示例值:1
|
TemplateAttachment |
build() |
TemplateAttachment.Builder |
cid(String cid)
内容 ID,HTML 中通过 cid: 协议引用该图片
示例值:image1@example.com
|
TemplateAttachment.Builder |
filename(String filename)
附件文件名
示例值:plan.xlsx
|
TemplateAttachment.Builder |
id(String id)
附件 id(Drive file_key,用于引用 Drive medias 上传接口返回的 file_key)
示例值:boxcnrHpsg1QDqXPrJXWPwbqsKh
|
TemplateAttachment.Builder |
isInline(Boolean isInline)
是否为内联图片,true 表示是内联图片
示例值:false
|
public TemplateAttachment.Builder filename(String filename)
示例值:plan.xlsx
filename - public TemplateAttachment.Builder id(String id)
示例值:boxcnrHpsg1QDqXPrJXWPwbqsKh
id - public TemplateAttachment.Builder attachmentType(Integer attachmentType)
示例值:1
attachmentType - public TemplateAttachment.Builder attachmentType(TemplateAttachmentAttachmentTypeEnum attachmentType)
示例值:1
attachmentType - TemplateAttachmentAttachmentTypeEnumpublic TemplateAttachment.Builder isInline(Boolean isInline)
示例值:false
isInline - public TemplateAttachment.Builder cid(String cid)
示例值:image1@example.com
cid - public TemplateAttachment build()
Copyright © 2026. All rights reserved.