Files
epusdt2/src/model/mdb/wallet_address_mdb.go
T
line-6000 938396d82b feat: refactor payment system with multi-currency support and TRX native transfer detection
- Add multi-currency exchange rate API integration (GetRateForCoin)
 - Implement native TRX transfer detection alongside TRC20 USDT transfers
 - Replace deprecated Tronscan API with Trongrid API for better reliability
 - Add TRON Grid API key configuration support
 - Refactor order service to support multiple tokens and currencies
 - Update wallet address locking/unlocking to track token type
 - Add base58 and gjson dependencies for crypto operations
 - Optimize SQLite connection with WAL mode and busy timeout
 - Remove deprecated USDT rate job (replaced by dynamic rate API)
 - Update order data model to include currency and receive address fields
 - Enhance TRC20 callback with improved error handling and logging
2026-03-30 16:19:10 +08:00

19 lines
478 B
Go

package mdb
const (
TokenStatusEnable = 1
TokenStatusDisable = 2
)
// WalletAddress 钱包表
type WalletAddress struct {
Address string `gorm:"index:wallet_address_index;column:address" json:"address"` // 钱包地址
Status int64 `gorm:"column:status;default:1" json:"status"` // 1:启用 2:禁用
BaseModel
}
// TableName sets the insert table name for this struct type
func (w *WalletAddress) TableName() string {
return "wallet_address"
}