WebhookLog.java
910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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;
}