WechatMiniprogramMessageModel.java
2.22 KB
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
71
72
73
74
75
76
package cn.com.glsx.entmicro.model;
import cn.com.glsx.scrm.wechat.dto.workwechat.message.WorkWechatContentItemDTO;
import lombok.Data;
import org.apache.dubbo.apidocs.annotations.RequestParam;
import org.codehaus.jackson.annotate.JsonProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;
/**
* @ClassName WechatMiniprogramMessageModel
* @Description 小程序通知
* @Author lichongyuan
* @Date 2023/1/6
*/
@Data
public class WechatMiniprogramMessageModel {
/**
* 小程序appid,必须是与当前应用关联的小程序
*/
@JsonProperty("appid")
@RequestParam(value = "appId", description = "小程序appid,必须是与当前应用关联的小程序")
private String appId;
/**
* 点击消息卡片后的小程序页面,仅限本小程序内的页面。该字段不填则消息点击后不跳转
*/
@JsonProperty("page")
@RequestParam(value = "page", description = "点击消息卡片后的小程序页面,仅限本小程序内的页面。该字段不填则消息点击后不跳转")
private String page;
/**
* 标题
*/
@JsonProperty("title")
@NotEmpty
@RequestParam(value = "title", description = "标题")
private String title;
/**
* 消息描述
*/
@JsonProperty("description")
@RequestParam(value = "description", description = "消息描述")
private String description;
/**
* 是否放大第一个content_item
*/
@JsonProperty("emphasis_first_item")
@RequestParam(value = "emphasisFirstItem", description = "是否放大第一个content_item")
private Boolean emphasisFirstItem;
/**
* 消息内容键值对
*/
@JsonProperty("content_item")
@Size(min = 1, max = 10)
@RequestParam(value = "contentItemList", description = "消息内容键值对")
private List<WechatContentItemModel> contentItemList;
/**
* 商户号
*/
private Integer merchantId;
/**
* 指定接收消息的成员,成员ID列表(多个接收者用‘|’分隔,最多支持1000个)。
* 特殊情况:指定为”@all”,则向该企业应用的全部成员发送
*/
private String userId;
}