Files
olons_admin/server/internal/model/entity/outbox_event.go
T
2026-10-10 20:56:17 +08:00

28 lines
1.7 KiB
Go

// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/os/gtime"
)
// OutboxEvent is the golang structure for table outbox_event.
type OutboxEvent struct {
Id uint64 `json:"id" orm:"id" description:"主键"`
TenantId uint64 `json:"tenantId" orm:"tenant_id" description:"租户ID"`
EventNo string `json:"eventNo" orm:"event_no" description:"事件号"`
AggregateType string `json:"aggregateType" orm:"aggregate_type" description:"聚合根类型"`
AggregateId uint64 `json:"aggregateId" orm:"aggregate_id" description:"聚合根ID"`
EventType string `json:"eventType" orm:"event_type" description:"事件类型"`
PayloadJson *gjson.Json `json:"payloadJson" orm:"payload_json" description:"已脱敏事件数据"`
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发送状态"`
RetryCount uint `json:"retryCount" orm:"retry_count" description:"重试次数"`
NextRetryAt *gtime.Time `json:"nextRetryAt" orm:"next_retry_at" description:"下次重试时间"`
LastError string `json:"lastError" orm:"last_error" description:"最后错误"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
PublishedAt *gtime.Time `json:"publishedAt" orm:"published_at" description:"发送时间"`
}