feat: 移除“租户管理员为用户充值 / 每租户一套余额”能力:余额统一为全局用户余额
This commit is contained in:
@@ -61,7 +61,7 @@ type orderQuery struct {
|
||||
ID field.Int64 // 主键ID:自增;用于关联订单明细、账本流水、权益等
|
||||
TenantID field.Int64 // 租户ID:多租户隔离关键字段;所有查询/写入必须限定 tenant_id
|
||||
UserID field.Int64 // 用户ID:下单用户(buyer);余额扣款与权益归属以该 user_id 为准
|
||||
Type field.Field // 订单类型:content_purchase(购买内容)/topup(充值)等;当前默认 content_purchase
|
||||
Type field.Field // 订单类型:content_purchase(购买内容)等;当前默认 content_purchase
|
||||
Status field.Field // 订单状态:created/paid/refunding/refunded/canceled/failed;状态变更需与账本/权益保持一致
|
||||
Currency field.Field // 币种:当前固定 CNY;金额单位为分
|
||||
AmountOriginal field.Int64 // 原价金额:分;未折扣前金额(用于展示与对账)
|
||||
|
||||
Reference in New Issue
Block a user