WebhookLog.java 910 Bytes
package com.diligrp.rider.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * Webhook 推送日志表
 * 记录每次回调的发送结果,便于排查问题和重试
 */
@Data
@TableName("webhook_log")
public class WebhookLog {

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 应用ID */
    private Long appId;

    /** 事件类型,如 order.completed */
    private String event;

    /** 推送的业务ID(如订单ID) */
    private Long bizId;

    /** 推送URL */
    private String url;

    /** 推送内容(JSON) */
    private String payload;

    /** HTTP响应码 */
    private Integer responseCode;

    /** 响应内容(截取前500字) */
    private String responseBody;

    /** 状态:0=失败 1=成功 */
    private Integer status;

    /** 重试次数 */
    private Integer retryCount;

    private Long createTime;
}