Skip to content

Commit

Permalink
use string intead of float64 for number
Browse files Browse the repository at this point in the history
  • Loading branch information
mm2175 committed Jan 4, 2022
1 parent da2b5a6 commit 1ab2533
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions v2/withdraw_service.go
Expand Up @@ -212,16 +212,16 @@ func (s *ListWithdrawsService) Do(ctx context.Context) (res []*Withdraw, err err

// Withdraw represents a single withdraw entry.
type Withdraw struct {
Address string `json:"address"`
Amount float64 `json:"amount,string"`
ApplyTime string `json:"applyTime"`
Coin string `json:"coin"`
ID string `json:"id"`
WithdrawOrderID string `json:"withdrawOrderId"`
Network string `json:"network"`
TransferType int `json:"transferType"`
Status int `json:"status"`
TransactionFee float64 `json:"transactionFee,string"`
Info string `json:"info"`
TxID string `json:"txId"`
Address string `json:"address"`
Amount string `json:"amount"`
ApplyTime string `json:"applyTime"`
Coin string `json:"coin"`
ID string `json:"id"`
WithdrawOrderID string `json:"withdrawOrderId"`
Network string `json:"network"`
TransferType int `json:"transferType"`
Status int `json:"status"`
TransactionFee string `json:"transactionFee"`
Info string `json:"info"`
TxID string `json:"txId"`
}

0 comments on commit 1ab2533

Please sign in to comment.