79 行
2.3 KiB
Java
79 行
2.3 KiB
Java
|
|
package com.xuqm.im.entity;
|
||
|
|
|
||
|
|
import jakarta.persistence.Column;
|
||
|
|
import jakarta.persistence.Entity;
|
||
|
|
import jakarta.persistence.Id;
|
||
|
|
import jakarta.persistence.Table;
|
||
|
|
import java.time.LocalDateTime;
|
||
|
|
|
||
|
|
@Entity
|
||
|
|
@Table(name = "im_webhook_delivery")
|
||
|
|
public class WebhookDeliveryEntity {
|
||
|
|
|
||
|
|
@Id
|
||
|
|
private String id;
|
||
|
|
|
||
|
|
@Column(nullable = false, length = 64)
|
||
|
|
private String appId;
|
||
|
|
|
||
|
|
@Column(nullable = false, length = 64)
|
||
|
|
private String callbackId;
|
||
|
|
|
||
|
|
@Column(nullable = false, length = 64)
|
||
|
|
private String callbackEvent;
|
||
|
|
|
||
|
|
@Column(nullable = false, length = 512)
|
||
|
|
private String url;
|
||
|
|
|
||
|
|
@Column(nullable = false)
|
||
|
|
private int httpStatus;
|
||
|
|
|
||
|
|
@Column(length = 4000)
|
||
|
|
private String responseBody;
|
||
|
|
|
||
|
|
@Column(length = 4000)
|
||
|
|
private String errorMessage;
|
||
|
|
|
||
|
|
@Column(nullable = false)
|
||
|
|
private int attempt;
|
||
|
|
|
||
|
|
@Column(nullable = false)
|
||
|
|
private boolean success;
|
||
|
|
|
||
|
|
@Column(nullable = false)
|
||
|
|
private LocalDateTime createdAt;
|
||
|
|
|
||
|
|
public String getId() { return id; }
|
||
|
|
public void setId(String id) { this.id = id; }
|
||
|
|
|
||
|
|
public String getAppId() { return appId; }
|
||
|
|
public void setAppId(String appId) { this.appId = appId; }
|
||
|
|
|
||
|
|
public String getCallbackId() { return callbackId; }
|
||
|
|
public void setCallbackId(String callbackId) { this.callbackId = callbackId; }
|
||
|
|
|
||
|
|
public String getCallbackEvent() { return callbackEvent; }
|
||
|
|
public void setCallbackEvent(String callbackEvent) { this.callbackEvent = callbackEvent; }
|
||
|
|
|
||
|
|
public String getUrl() { return url; }
|
||
|
|
public void setUrl(String url) { this.url = url; }
|
||
|
|
|
||
|
|
public int getHttpStatus() { return httpStatus; }
|
||
|
|
public void setHttpStatus(int httpStatus) { this.httpStatus = httpStatus; }
|
||
|
|
|
||
|
|
public String getResponseBody() { return responseBody; }
|
||
|
|
public void setResponseBody(String responseBody) { this.responseBody = responseBody; }
|
||
|
|
|
||
|
|
public String getErrorMessage() { return errorMessage; }
|
||
|
|
public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; }
|
||
|
|
|
||
|
|
public int getAttempt() { return attempt; }
|
||
|
|
public void setAttempt(int attempt) { this.attempt = attempt; }
|
||
|
|
|
||
|
|
public boolean isSuccess() { return success; }
|
||
|
|
public void setSuccess(boolean success) { this.success = success; }
|
||
|
|
|
||
|
|
public LocalDateTime getCreatedAt() { return createdAt; }
|
||
|
|
public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
|
||
|
|
}
|