童刚
2022-08-23 0e498cee8aa8b75547e4dc24d2d821baa1892c3f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package com.hx.warehouse.dto;
 
 
import java.util.List;
 
public class TemplateMsgDto {
    /** 小程序appid,必须是与当前应用关联的小程序 - Y*/
    private String appId;
    /** 点击消息卡片后的小程序页面,最长1024个字节,仅限本小程序内的页面。该字段不填则消息点击后不跳转。 */
    private String page;
    /** 消息标题,长度限制4-12个汉字(支持id转译)- Y*/
    private String title;
    /** 消息描述,长度限制4-12个汉字(支持id转译)- Y*/
    private String description;
    /** 是否放大第一个content_item,默认false - N*/
    private boolean emphasisFirstItem = BOOLEAN_FALSE;
    /** 消息内容键值对,最多允许10个item*/
    private List<ContentItemDto> contentItem;
 
    public static final boolean BOOLEAN_FALSE = false;
    public static final boolean BOOLEAN_TRUE = false;
 
    public String getAppId() {
        return appId;
    }
 
    public void setAppId(String appId) {
        this.appId = appId;
    }
 
    public String getPage() {
        return page;
    }
 
    public void setPage(String page) {
        this.page = page;
    }
 
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public String getDescription() {
        return description;
    }
 
    public void setDescription(String description) {
        this.description = description;
    }
 
    public boolean isEmphasisFirstItem() {
        return emphasisFirstItem;
    }
 
    public void setEmphasisFirstItem(boolean emphasisFirstItem) {
        this.emphasisFirstItem = emphasisFirstItem;
    }
 
    public List<ContentItemDto> getContentItem() {
        return contentItem;
    }
 
    public void setContentItem(List<ContentItemDto> contentItem) {
        this.contentItem = contentItem;
    }
}