Files
orbit/weave/model/poll_round.go

23 lines
920 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 model
import (
core "git.yuntuo.hk/k2safe/orbit/model"
)
// PollRound 表示一次激活内的业务查询轮次;人工恢复同轮会在新激活中关联新任务,旧记录保留。
// 对应表 weave_poll_rounds;这是服务端持久化模型,不直接作为 API 响应。
type PollRound struct {
// Record 包含命名空间、记录标识、并发版本和 UTC 时间。
core.Record
// WorkflowID 所属流程实例标识。
WorkflowID core.ID `db:"workflow_id"`
// ActivationID 所属步骤激活;人工恢复可在新激活沿用同一业务轮编号。
ActivationID core.ID `db:"activation_id"`
// Round 从首次激活起连续的业务轮次;人工恢复同轮保留编号,通过ActivationID区分任务。
Round uint32 `db:"round"`
// TaskID 关联的 Pulse 任务标识。
TaskID core.ID `db:"task_id"`
}
func (PollRound) TableName() string { return "weave_poll_rounds" }