adding username translation
This commit is contained in:
parent
c2b48e4de4
commit
2a203f3ac7
19
profile.go
19
profile.go
@ -8,26 +8,11 @@ import (
|
||||
"io"
|
||||
"net/http"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Profile struct {
|
||||
Address string `json:"address"`
|
||||
Username string `json:"username"`
|
||||
Leaderboard struct {
|
||||
Global string `json:"global"`
|
||||
Team string `json:"team"`
|
||||
Volume int `json:"volume"`
|
||||
NextRank string `json:"next_rank"`
|
||||
} `json:"leaderboard"`
|
||||
LeaderboardFantoken struct {
|
||||
Global string `json:"global"`
|
||||
Team string `json:"team"`
|
||||
Volume int `json:"volume"`
|
||||
NextRank string `json:"next_rank"`
|
||||
} `json:"leaderboard_fantoken"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
Address string `json:"address"`
|
||||
Username string `json:"username"`
|
||||
}
|
||||
|
||||
func getUsernameFromAddress(address string) (string, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user