|
| 1 | +package me.chanjar.weixin.channel.bean.kf; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 4 | +import com.fasterxml.jackson.annotation.JsonInclude.Include; |
| 5 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 6 | +import lombok.AllArgsConstructor; |
| 7 | +import lombok.Data; |
| 8 | +import lombok.NoArgsConstructor; |
| 9 | + |
| 10 | +import java.io.Serializable; |
| 11 | + |
| 12 | +/** |
| 13 | + * 发送客服消息请求参数 |
| 14 | + * |
| 15 | + * @author <a href="https://github.com/github-copilot">GitHub Copilot</a> |
| 16 | + */ |
| 17 | +@Data |
| 18 | +@NoArgsConstructor |
| 19 | +@AllArgsConstructor |
| 20 | +@JsonInclude(Include.NON_NULL) |
| 21 | +public class WxChannelKfSendMsgParam implements Serializable { |
| 22 | + |
| 23 | + private static final long serialVersionUID = -7384287911696365032L; |
| 24 | + |
| 25 | + /** 唯一任务ID,填写后按任务ID去重 */ |
| 26 | + @JsonProperty("request_id") |
| 27 | + private String requestId; |
| 28 | + |
| 29 | + /** 用户 open_id */ |
| 30 | + @JsonProperty("open_id") |
| 31 | + private String openId; |
| 32 | + |
| 33 | + /** 消息类型 */ |
| 34 | + @JsonProperty("msg_type") |
| 35 | + private String msgType; |
| 36 | + |
| 37 | + /** 文本消息 */ |
| 38 | + @JsonProperty("text") |
| 39 | + private TextMessage text; |
| 40 | + |
| 41 | + /** 图片消息 */ |
| 42 | + @JsonProperty("image") |
| 43 | + private CosUrlMessage image; |
| 44 | + |
| 45 | + /** 视频消息 */ |
| 46 | + @JsonProperty("video") |
| 47 | + private CosUrlMessage video; |
| 48 | + |
| 49 | + /** 文件消息 */ |
| 50 | + @JsonProperty("file") |
| 51 | + private CosUrlMessage file; |
| 52 | + |
| 53 | + /** 商品卡片消息 */ |
| 54 | + @JsonProperty("product_share") |
| 55 | + private ProductShareMessage productShare; |
| 56 | + |
| 57 | + /** 订单卡片消息 */ |
| 58 | + @JsonProperty("order_share") |
| 59 | + private OrderShareMessage orderShare; |
| 60 | + |
| 61 | + @Data |
| 62 | + @NoArgsConstructor |
| 63 | + @AllArgsConstructor |
| 64 | + public static class TextMessage implements Serializable { |
| 65 | + |
| 66 | + private static final long serialVersionUID = -5001585611550636499L; |
| 67 | + |
| 68 | + @JsonProperty("content") |
| 69 | + private String content; |
| 70 | + } |
| 71 | + |
| 72 | + @Data |
| 73 | + @NoArgsConstructor |
| 74 | + @AllArgsConstructor |
| 75 | + public static class CosUrlMessage implements Serializable { |
| 76 | + |
| 77 | + private static final long serialVersionUID = 8403720861098936947L; |
| 78 | + |
| 79 | + @JsonProperty("cos_url") |
| 80 | + private String cosUrl; |
| 81 | + } |
| 82 | + |
| 83 | + @Data |
| 84 | + @NoArgsConstructor |
| 85 | + @AllArgsConstructor |
| 86 | + public static class ProductShareMessage implements Serializable { |
| 87 | + |
| 88 | + private static final long serialVersionUID = -3049552399099249795L; |
| 89 | + |
| 90 | + @JsonProperty("product_id") |
| 91 | + private String productId; |
| 92 | + } |
| 93 | + |
| 94 | + @Data |
| 95 | + @NoArgsConstructor |
| 96 | + @AllArgsConstructor |
| 97 | + public static class OrderShareMessage implements Serializable { |
| 98 | + |
| 99 | + private static final long serialVersionUID = 7136546635145180607L; |
| 100 | + |
| 101 | + @JsonProperty("order_id") |
| 102 | + private String orderId; |
| 103 | + } |
| 104 | +} |
0 commit comments