Files
order/consts/collections.go

30 lines
1.1 KiB
Go
Raw Permalink Normal View History

2025-12-10 13:51:09 +08:00
package consts
2025-12-12 16:20:47 +08:00
// MongoDB集合常量
2025-12-10 13:51:09 +08:00
const (
2025-12-12 16:20:47 +08:00
// OrderCollection 订单集合
OrderCollection = "order"
// 订单统计集合 - 按不同维度拆分
OrderStatisticsCollection = "order_statistics" // 通用统计集合(兼容旧版本)
OrderDailyStatisticsCollection = "order_daily_statistics" // 日统计集合
OrderMonthlyStatisticsCollection = "order_monthly_statistics" // 月统计集合
OrderQuarterlyStatisticsCollection = "order_quarterly_statistics" // 季度统计集合
OrderYearlyStatisticsCollection = "order_yearly_statistics" // 年统计集合
// 各状态订单集合
2025-12-10 13:51:09 +08:00
OrderPendingCollection = "orders_pending"
OrderPaidCollection = "orders_paid"
OrderShippedCollection = "orders_shipped"
OrderCompletedCollection = "orders_completed"
2025-12-12 16:20:47 +08:00
OrderCancelledCollection = "orders_cancelled"
OrderRefundedCollection = "orders_refunded"
2025-12-10 13:51:09 +08:00
2025-12-12 16:20:47 +08:00
// 支付配置集合
PaymentConfigCollection = "payment_config"
// 支付记录集合
PaymentRecordCollection = "payment_record"
RefundRecordCollection = "refund_record"
2025-12-10 13:51:09 +08:00
)