github.com/sixexorg/magnetic-ring@v0.0.0-20191119090307-31705a21e419/store/mainchain/account_level/level_entity.go (about) 1 package account_level 2 3 import ( 4 "encoding/gob" 5 ) 6 7 func init() { 8 gob.Register(HeightLevel{}) 9 } 10 11 type HeightLevel struct { 12 Height uint64 13 Lv EasyLevel 14 } 15 16 func (this *HeightLevel) GetHeight() uint64 { 17 return this.Height 18 } 19 func (this *HeightLevel) GetVal() interface{} { 20 return this.Lv 21 }