feat: add order governance flags and reconciliation
This commit is contained in:
@@ -165,6 +165,10 @@ type SuperOrderListFilter struct {
|
||||
Type *consts.OrderType `query:"type"`
|
||||
// Status 订单状态过滤。
|
||||
Status *consts.OrderStatus `query:"status"`
|
||||
// IsFlagged 是否标记为问题订单(true/false)。
|
||||
IsFlagged *bool `query:"is_flagged"`
|
||||
// IsReconciled 是否已完成对账(true/false)。
|
||||
IsReconciled *bool `query:"is_reconciled"`
|
||||
// CreatedAtFrom 创建时间起始(RFC3339)。
|
||||
CreatedAtFrom *string `query:"created_at_from"`
|
||||
// CreatedAtTo 创建时间结束(RFC3339)。
|
||||
@@ -549,6 +553,22 @@ type SuperOrderItem struct {
|
||||
PaidAt string `json:"paid_at"`
|
||||
// RefundedAt 退款时间(RFC3339)。
|
||||
RefundedAt string `json:"refunded_at"`
|
||||
// IsFlagged 是否标记为问题订单。
|
||||
IsFlagged bool `json:"is_flagged"`
|
||||
// FlagReason 问题标记原因。
|
||||
FlagReason string `json:"flag_reason"`
|
||||
// FlaggedBy 标记操作者ID。
|
||||
FlaggedBy int64 `json:"flagged_by"`
|
||||
// FlaggedAt 标记时间(RFC3339)。
|
||||
FlaggedAt string `json:"flagged_at"`
|
||||
// IsReconciled 是否完成对账。
|
||||
IsReconciled bool `json:"is_reconciled"`
|
||||
// ReconcileNote 对账说明。
|
||||
ReconcileNote string `json:"reconcile_note"`
|
||||
// ReconciledBy 对账操作者ID。
|
||||
ReconciledBy int64 `json:"reconciled_by"`
|
||||
// ReconciledAt 对账时间(RFC3339)。
|
||||
ReconciledAt string `json:"reconciled_at"`
|
||||
// CreatedAt 创建时间(RFC3339)。
|
||||
CreatedAt string `json:"created_at"`
|
||||
// UpdatedAt 更新时间(RFC3339)。
|
||||
@@ -621,6 +641,20 @@ type SuperOrderRefundForm struct {
|
||||
IdempotencyKey string `json:"idempotency_key"`
|
||||
}
|
||||
|
||||
type SuperOrderFlagForm struct {
|
||||
// IsFlagged 是否标记为问题订单。
|
||||
IsFlagged bool `json:"is_flagged"`
|
||||
// Reason 标记原因(标记为问题时必填)。
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
|
||||
type SuperOrderReconcileForm struct {
|
||||
// IsReconciled 是否完成对账。
|
||||
IsReconciled bool `json:"is_reconciled"`
|
||||
// Note 对账说明(可选)。
|
||||
Note string `json:"note"`
|
||||
}
|
||||
|
||||
// AdminContentItem for super admin view
|
||||
type AdminContentItem struct {
|
||||
// Content 内容摘要信息。
|
||||
|
||||
Reference in New Issue
Block a user