wallet/pkg/store/trx_account.go
Anton Nesterov b19bf34e5f
[init]
2024-08-31 16:54:43 +02:00

33 lines
619 B
Go

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
}