You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.1 KiB
69 lines
2.1 KiB
package co.yixiang.utils.WxTemplate; |
|
|
|
import co.yixiang.utils.WxTemplate.dto.*; |
|
import com.alibaba.fastjson.annotation.JSONField; |
|
import lombok.Builder; |
|
import lombok.Data; |
|
|
|
import java.util.ArrayList; |
|
@Data |
|
@Builder |
|
public class TemplateCard { |
|
|
|
/** 模板卡片的模板类型*/ |
|
@JSONField(name = "card_type") |
|
private String cardType; |
|
|
|
/**卡片来源信息模板 icon_url:来源图片url、desc:描述、desc_color:颜色 0(默认) 灰色,1 黑色,2 红色,3 绿色 */ |
|
private Souce source; |
|
|
|
/** 模版卡片的主要内容 title:一级标题、desc:标题辅助信息*/ |
|
@JSONField(name = "main_title") |
|
private MainTitle mainTitle; |
|
|
|
/** 关键数据样式 "title":"100", |
|
"desc":"数据含义"*/ |
|
@JSONField(name = "emphasis_content") |
|
private EmphasisContent emphasisContent; |
|
|
|
/** 引用文献样式 |
|
* "type":1, |
|
"url":"https://work.weixin.qq.com/?from=openApi", |
|
"appid":"APPID", |
|
"pagepath":"PAGEPATH", |
|
"title":"引用文本标题", |
|
"quote_text":"Jack:企业微信真的很好用~\nBalian:超级好的一款软件!"*/ |
|
@JSONField(name = "quote_area") |
|
private QuoteArea quoteArea; |
|
|
|
@JSONField(name = "sub_title_text") |
|
private String subTitleText; |
|
|
|
/** 二级标题+文本列表 type:0或不填代表是普通文本,1 代表跳转url,2 代表下载附件,3 代表@员工 |
|
keyname:二级标题、value:内容、url:链接 |
|
* */ |
|
@JSONField(name = "horizontal_content_list") |
|
private ArrayList<HorizontalContent> horizontalContentList; |
|
|
|
/** { |
|
"type":1, |
|
"url":"https://work.weixin.qq.com/?from=openApi", |
|
"title":"企业微信官网" |
|
}, |
|
{ |
|
"type":2, |
|
"appid":"APPID", |
|
"pagepath":"PAGEPATH", |
|
"title":"跳转小程序" |
|
}*/ |
|
@JSONField(name = "jump_list") |
|
private ArrayList<Jump> jumpList; |
|
|
|
/** 0 = 未购买 1 = 已购买 "type":1, |
|
"url":"https://work.weixin.qq.com/?from=openApi", |
|
"appid":"APPID", |
|
"pagepath":"PAGEPATH"*/ |
|
@JSONField(name = "card_action") |
|
private CardAction cardAction; |
|
|
|
}
|
|
|