wallet/pkg/store/trx_account.go

33 lines
619 B
Go
Raw Normal View History

2024-08-31 14:46:20 +00:00
package store
import "gorm.io/gorm"
type TronAccount struct {
gorm.Model
AccountID string `gorm:"unique" json:"account_id"`
Label string `json:"label"`
Address string `gorm:"unique" json:"address"`
HDIndex int `gorm:"unique" json:"hd_index"`
Spender string `json:"spender"`
}
func (a *TronAccount) GetAccountID() string {
return a.AccountID
}
func (a *TronAccount) GetHDIndex() int {
return a.HDIndex
}
func (a *TronAccount) GetAddress() string {
return a.Address
}
func (a *TronAccount) GetSpender() string {
return a.Spender
}
func (a *TronAccount) GetLabel() string {
return a.Label
}