Files

21 lines
868 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package outbox
import (
"time"
adapter "git.yuntuo.hk/k2safe/orbit/adapters/outbox/mysql"
)
// Record 复用公共适配器的中文持久化模型。
type Record = adapter.Record
// Job 演示接入方业务记录,与Record原子创建,受理确认时再原子关联任务。
type Job struct {
NamespaceID string // NamespaceID 与待发命令使用相同命名空间范围。
OperationID string // OperationID 业务操作标识,与同事务Outbox一一对应。
SourceRef string // SourceRef 待处理对象引用,不含对象正文;首次创建后固定。
TaskID *string // TaskID 已确认的平台受理ID;为空不证明平台尚未受理。
CreatedAt time.Time // CreatedAt 业务记录首次创建UTC时间,微秒精度。
UpdatedAt time.Time // UpdatedAt 关联平台任务时的UTC时间,微秒精度。
}