package com.ycwl.basic.integration.message.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Map;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MessageRecordDTO {
    private String id;                 // string to avoid JS precision
    private String channelId;
    private String title;
    private String content;
    private String target;
    private Map<String, Object> extraJson;
    private String sendReason;
    private String sendBiz;
    private String status;
    private String errorMsg;
    private Integer attempts;
    private String sentAt;     // RFC3339 or yyyy-MM-dd HH:mm:ss (pass-through)
    private String createdAt;
    private String updatedAt;
}