新增客服「封存订单」动作,用于号主失联、无法联系的场景:单事务内 完成关闭订单、全量原路退款、永久封存关联商品、解散发布群、双方通知 与审计日志。 - 新增 listing 终态 sealed(封存),区别于可恢复的 offline - listingLockedForOwnerMutation 锁定 sealed,号主无法再编辑/提审/上架 - 解散群聊按 listing_id 查发布群(listing_group)置 archived, 阻断所有成员发言并留系统消息 - 新增 order.AdminSeal 及 /admin/orders/:id/seal 路由 - 前端:卖家页 PC/移动端 sealed 视为终态禁用操作,客服后台新增 「封存订单」按钮与二次确认 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
70 lines
2.7 KiB
Go
70 lines
2.7 KiB
Go
package order
|
|
|
|
const (
|
|
orderStatusPendingPayment = "pending_payment"
|
|
orderStatusPendingHandoff = "pending_handoff"
|
|
orderStatusRenting = "renting"
|
|
orderStatusOverdue = "overdue"
|
|
orderStatusPendingCheckoutConfirm = "pending_checkout_confirm"
|
|
orderStatusPendingCheckoutAccept = "pending_checkout_accept"
|
|
orderStatusCheckoutDisputing = "checkout_disputing"
|
|
orderStatusCompleted = "completed"
|
|
orderStatusCancelled = "cancelled"
|
|
orderStatusClosed = "closed"
|
|
orderStatusAbnormal = "abnormal"
|
|
|
|
handoffStatusNone = "none"
|
|
handoffStatusPendingOwner = "pending_owner"
|
|
handoffStatusPendingRenterConfirm = "pending_renter_confirm"
|
|
handoffStatusReceived = "received"
|
|
handoffStatusReturnOverdue = "return_overdue"
|
|
handoffStatusPendingOwnerCheckout = "pending_owner_checkout"
|
|
handoffStatusPendingRenterCheckout = "pending_renter_checkout"
|
|
handoffStatusReturned = "returned"
|
|
handoffStatusOwnerTimeout = "owner_timeout"
|
|
handoffStatusRenterConfirmTimeout = "renter_confirm_timeout"
|
|
handoffStatusOwnerReturnConfirmTimeout = "owner_return_confirm_timeout"
|
|
handoffStatusOwnerCheckoutConfirmTimeout = "owner_checkout_confirm_timeout"
|
|
handoffStatusCancelled = "cancelled"
|
|
handoffStatusAdminClosed = "admin_closed"
|
|
handoffStatusAdminAbnormal = "admin_abnormal"
|
|
|
|
settlementStatusUnsettled = "unsettled"
|
|
settlementStatusPending = "pending"
|
|
settlementStatusSettled = "settled"
|
|
settlementStatusClosed = "closed"
|
|
|
|
checkoutStatusSubmitted = "submitted"
|
|
checkoutStatusCountered = "countered"
|
|
checkoutStatusAccepted = "accepted"
|
|
checkoutStatusDisputed = "disputed"
|
|
|
|
refundStatusPending = "pending"
|
|
refundStatusPendingReview = "pending_review"
|
|
refundStatusRefunded = "refunded"
|
|
|
|
listingReviewStatusApproved = "approved"
|
|
|
|
listingStatusPublished = "published"
|
|
listingStatusRented = "rented"
|
|
listingStatusOffline = "offline"
|
|
listingStatusCompleted = "completed"
|
|
listingStatusAbnormal = "abnormal"
|
|
listingStatusSealed = "sealed"
|
|
|
|
accountStatusPublished = "published"
|
|
accountStatusRented = "rented"
|
|
accountStatusOffline = "offline"
|
|
accountStatusAbnormal = "abnormal"
|
|
accountStatusSealed = "sealed"
|
|
|
|
walletBizOwnerIncome = "owner_income"
|
|
walletBizDepositCompensation = "deposit_compensation"
|
|
|
|
refundBizCancel = "cancel_refund"
|
|
refundBizAdminClose = "admin_close_refund"
|
|
refundBizAdminSeal = "admin_seal_refund"
|
|
refundBizAdmin = "admin_refund"
|
|
refundBizCheckout = "checkout_refund"
|
|
)
|