50 lines
1.1 KiB
Java
50 lines
1.1 KiB
Java
|
|
package com.wecom.robot.dto;
|
||
|
|
|
||
|
|
import lombok.AllArgsConstructor;
|
||
|
|
import lombok.Builder;
|
||
|
|
import lombok.Data;
|
||
|
|
import lombok.NoArgsConstructor;
|
||
|
|
|
||
|
|
import java.util.Map;
|
||
|
|
|
||
|
|
@Data
|
||
|
|
@Builder
|
||
|
|
@NoArgsConstructor
|
||
|
|
@AllArgsConstructor
|
||
|
|
public class InboundMessage {
|
||
|
|
|
||
|
|
private String channelType;
|
||
|
|
|
||
|
|
private String channelMessageId;
|
||
|
|
|
||
|
|
private String sessionKey;
|
||
|
|
|
||
|
|
private String customerId;
|
||
|
|
|
||
|
|
private String kfId;
|
||
|
|
|
||
|
|
private String sender;
|
||
|
|
|
||
|
|
private String content;
|
||
|
|
|
||
|
|
private String msgType;
|
||
|
|
|
||
|
|
private String rawPayload;
|
||
|
|
|
||
|
|
private Long timestamp;
|
||
|
|
|
||
|
|
private SignatureInfo signatureInfo;
|
||
|
|
|
||
|
|
private Map<String, Object> metadata;
|
||
|
|
|
||
|
|
public static final String CHANNEL_WECHAT = "wechat";
|
||
|
|
public static final String CHANNEL_DOUYIN = "douyin";
|
||
|
|
public static final String CHANNEL_JD = "jd";
|
||
|
|
|
||
|
|
public static final String MSG_TYPE_TEXT = "text";
|
||
|
|
public static final String MSG_TYPE_IMAGE = "image";
|
||
|
|
public static final String MSG_TYPE_VOICE = "voice";
|
||
|
|
public static final String MSG_TYPE_VIDEO = "video";
|
||
|
|
public static final String MSG_TYPE_EVENT = "event";
|
||
|
|
}
|