package constants import "time" // 退款资产后处理步骤(tb_refund_post_process_attempt.step)。 const ( RefundPostStepLoad = "load" // 读取订单与资产 RefundPostStepInvalidate = "invalidate" // 套餐失效 RefundPostStepActivate = "activate" // 接续激活 RefundPostStepCheckMain = "check_main" // 查询生效主套餐 RefundPostStepStop = "stop" // 停机评估或停机 RefundPostStepMark = "mark" // 标记完成 RefundPostStepDone = "done" // 全部完成 ) // 退款资产后处理触发方式。 const ( RefundPostTriggerOutbox = "outbox" // Outbox 投递(含补偿扫描重投) RefundPostTriggerManual = "manual" // 后台人工重试 ) // 退款资产后处理尝试结果。 const ( RefundPostResultSuccess = "success" RefundPostResultFailed = "failed" ) const ( // RefundPostMaxAttempts 是退款资产后处理自动重试上限,达到后转人工处理。 RefundPostMaxAttempts = 10 // RefundPostMaxBackoff 是自动重试间隔上限。 RefundPostMaxBackoff = time.Hour )