/**
 * 树转让钱包操作 DTO（纯新增）
 * 供 transfer-service 通过 HTTP 调用
 *
 * 回滚方式：删除此文件并从 controller 中移除引用
 */

/**
 * 冻结买方资金
 */
export class FreezeForTransferDto {
  accountSequence: string;
  amount: string;           // 字符串格式保持 Decimal 精度
  transferOrderNo: string;
  reason: string;
}

/**
 * 解冻买方资金（补偿/回滚）
 */
export class UnfreezeForTransferDto {
  accountSequence: string;
  freezeId: string;         // = transferOrderNo
  transferOrderNo: string;
  reason: string;
}

/**
 * 结算转让资金：买方冻结 → 卖方实收 + 平台手续费
 */
export class SettleTransferDto {
  buyerAccountSequence: string;
  sellerAccountSequence: string;
  freezeId: string;
  sellerReceiveAmount: string;
  platformFeeAmount: string;
  transferOrderNo: string;
}
