Skip to content

Commit

Permalink
fix(fetch): remove unnecessary part of /getOtherLeaderboardBaseInfo
Browse files Browse the repository at this point in the history
… body
  • Loading branch information
rtunazzz committed Jan 23, 2023
1 parent f43d500 commit a18eafc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ type UserBaseInfo struct {
// GetOtherLeaderboardBaseInfo gets information for the uuid passed in.
func GetOtherLeaderboardBaseInfo(ctx context.Context, UUID string) (LdbAPIRes[UserBaseInfo], error) {
var res LdbAPIRes[UserBaseInfo]
return res, doPost(ctx, http.DefaultClient, apiBaseV2, "/getOtherLeaderboardBaseInfo", defaultHeaders, strings.NewReader(fmt.Sprintf("{\"encryptedUid\":\"%s\",\"tradeType\":\"PERPETUAL\"}", UUID)), &res)
return res, doPost(ctx, http.DefaultClient, apiBaseV2, "/getOtherLeaderboardBaseInfo", defaultHeaders, strings.NewReader(fmt.Sprintf("{\"encryptedUid\":\"%s\"}", UUID)), &res)
}

// GetOtherLeaderboardBaseInfo gets information about an user.
func (u User) GetOtherLeaderboardBaseInfo(ctx context.Context) (LdbAPIRes[UserBaseInfo], error) {
var res LdbAPIRes[UserBaseInfo]
return res, doPost(ctx, u.c, apiBaseV2, "/getOtherLeaderboardBaseInfo", u.headers, strings.NewReader(fmt.Sprintf("{\"encryptedUid\":\"%s\",\"tradeType\":\"PERPETUAL\"}", u.UID)), &res)
return res, doPost(ctx, u.c, apiBaseV2, "/getOtherLeaderboardBaseInfo", u.headers, strings.NewReader(fmt.Sprintf("{\"encryptedUid\":\"%s\"}", u.UID)), &res)
}

// ************************************************** /searchNickname **************************************************
Expand Down

0 comments on commit a18eafc

Please sign in to comment.