Files
orbit/weave/model/poll_round.go

23 lines
807 B
Go
Raw 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 表示一次业务查询轮次,一轮对应一个 Pulse 任务。
// 对应表 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 本次激活内的查询轮次编号,从 1 开始。
Round uint32 `db:"round"`
// TaskID 关联的 Pulse 任务标识。
TaskID core.ID `db:"task_id"`
}
func (PollRound) TableName() string { return "weave_poll_rounds" }