2026-07-12 17:38:48 +08:00

49 lines
1.5 KiB
Go

package ledger
// PointWithdrawalCoinSellerConfig 是 POINT 提现可选币商及其服务范围、兑换比例的运行快照。
type PointWithdrawalCoinSellerConfig struct {
AppCode string
SellerUserID int64
SortOrder int
PointAmount int64
SellerCoinAmount int64
ServiceCountryCodes []string
Status string
CreatedAtMS int64
UpdatedAtMS int64
}
// PointToCoinSellerCommand 只接受用户、目标和金额;比例必须由 wallet 数据库的 active 白名单解析。
type PointToCoinSellerCommand struct {
AppCode string
CommandID string
SourceUserID int64
SellerUserID int64
PointAmount int64
SourceCountryCode string
Reason string
}
// PointToCoinSellerReceipt 是 POINT 扣款和币商库存入账的双边稳定回执。
type PointToCoinSellerReceipt struct {
TransactionID string
SourceUserID int64
SellerUserID int64
SourcePointBalanceAfter int64
SellerBalanceAfter int64
PointAmount int64
SellerCoinAmount int64
RatioPointAmount int64
RatioSellerCoinAmount int64
CreatedAtMS int64
}
// PointWithdrawalRuntimeConfig 是已发布政策中钱包页需要展示并用于冻结的参数。
type PointWithdrawalRuntimeConfig struct {
Found bool
PointsPerUSD int64
FeeBPS int64
MinimumPoints int64
PolicyInstanceCode string
}