gomod引用

This commit is contained in:
2025-12-12 16:20:47 +08:00
parent 0393931e91
commit a4ba4dd715
27 changed files with 2886 additions and 87 deletions

View File

@@ -1,16 +1,29 @@
package consts
// 订单集合常量
// MongoDB集合常量
const (
// OrderCollection 订单集合
OrderCollection = "order"
// 订单统计集合 - 按不同维度拆分
OrderStatisticsCollection = "order_statistics" // 通用统计集合(兼容旧版本)
OrderDailyStatisticsCollection = "order_daily_statistics" // 日统计集合
OrderMonthlyStatisticsCollection = "order_monthly_statistics" // 月统计集合
OrderQuarterlyStatisticsCollection = "order_quarterly_statistics" // 季度统计集合
OrderYearlyStatisticsCollection = "order_yearly_statistics" // 年统计集合
// 各状态订单集合
OrderPendingCollection = "orders_pending"
OrderPaidCollection = "orders_paid"
OrderShippedCollection = "orders_shipped"
OrderCompletedCollection = "orders_completed"
)
OrderCancelledCollection = "orders_cancelled"
OrderRefundedCollection = "orders_refunded"
// 支付相关集合常量
const (
PaymentConfigCollection = "payment_configs"
PaymentRecordCollection = "payment_records"
RefundRecordCollection = "refund_records"
// 支付配置集合
PaymentConfigCollection = "payment_config"
// 支付记录集合
PaymentRecordCollection = "payment_record"
RefundRecordCollection = "refund_record"
)