adding username translation
This commit is contained in:
parent
c2b48e4de4
commit
2a203f3ac7
19
profile.go
19
profile.go
@ -8,26 +8,11 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Profile struct {
|
type Profile struct {
|
||||||
Address string `json:"address"`
|
Address string `json:"address"`
|
||||||
Username string `json:"username"`
|
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"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func getUsernameFromAddress(address string) (string, error) {
|
func getUsernameFromAddress(address string) (string, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user