Files
team-api/internal/model/do/ord_orders.go
T
Qian 2ef5a40c26 新的调度方式 (#14)
重构模型渠道调度系统
2026-08-01 22:55:08 +08:00

40 lines
2.0 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// OrdOrders is the golang structure of table ord_orders for DAO operations like Where/Data.
type OrdOrders struct {
g.Meta `orm:"table:ord_orders, do:true"`
Id any // 主键ID
OrderNo any // 订单号(唯一,格式 ORD + 时间戳 + 随机数)
TenantId any // 租户ID
UserId any // 下单用户ID
OrderType any // 订单类型:new_plan(新购)/ renew(续费)/ upgrade(升级)/ downgrade(降级)/ recharge(充值)
PlanId any // 套餐ID(充值订单时为 NULL)
Amount any // 原始金额
DiscountAmount any // 优惠金额
FinalAmount any // 最终金额
Currency any // 货币(订单层一律 CNY)
PaymentChannel any // 支付渠道
PaymentMethod any // 支付方式描述
PaymentNo any // 第三方支付流水号
Status any // 订单状态
PaidAt *gtime.Time // 支付时间
FulfilledAt *gtime.Time // 履约完成时间
ExpiredAt *gtime.Time // 过期时间(未支付 30 分钟后自动过期)
CancelledAt *gtime.Time // 取消时间
RelatedOrderId any // 关联订单ID(退款时指向原始订单)
Description any // 订单描述
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
ExchangeRate any // 履约当时的 CNY→USD 汇率快照(仅 recharge 订单履约时写入,历史订单为 NULL)
CreditedUsd any // 履约入账钱包的 USD 金额快照(仅 recharge 订单履约时写入,= 原价 CNY × exchange_rate 向上取整 6 位)
}