package dto type OrderCreateForm struct { // ContentID 内容ID。 ContentID int64 `json:"content_id"` // Sku 规格标识(可选)。 Sku string `json:"sku"` // Quantity 购买数量(默认 1)。 Quantity int `json:"quantity"` // UserCouponID 用户券ID(可选)。 UserCouponID int64 `json:"user_coupon_id"` // IdempotencyKey 幂等键(同一业务请求需保持一致)。 IdempotencyKey *string `json:"idempotency_key"` } type OrderCreateResponse struct { // OrderID 创建成功的订单ID。 OrderID int64 `json:"order_id"` } type OrderPayForm struct { // Method 支付方式(alipay/balance)。 Method string `json:"method"` } type OrderPayResponse struct { // PayParams 支付参数(透传给前端)。 PayParams string `json:"pay_params"` } type OrderStatusResponse struct { // Status 订单状态(unpaid/paid/completed 等)。 Status string `json:"status"` } // PaymentWebhookForm 支付回调参数。 type PaymentWebhookForm struct { // OrderID 订单ID。 OrderID int64 `json:"order_id"` // ExternalID 第三方支付流水号。 ExternalID string `json:"external_id"` }