package cn.nianxx.thhotel.platform.message.common.enums;

/**
 * 来源消息捕获失败原因。safeSummary 只用于安全排查摘要，不包含原文、附件 URL 或 Secret。
 */
public enum SourceMessageCaptureFailureReason {

    MISSING_EXTERNAL_MESSAGE_ID("payload missing external message id"),
    INVALID_MEDIA_ITEM("payload media item is invalid"),
    MISSING_MEDIA_TYPE("payload media item missing media type"),
    MISSING_MEDIA_EXTERNAL_URL("payload media item missing external url");

    private final String safeSummary;

    SourceMessageCaptureFailureReason(String safeSummary) {
        this.safeSummary = safeSummary;
    }

    public String safeSummary() {
        return safeSummary;
    }
}
