reformat go code

This commit is contained in:
c9s 2022-06-21 01:25:47 +08:00
parent d53176acdf
commit 9f2b810fd3
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 7 additions and 7 deletions

View File

@ -27,7 +27,7 @@ func (e *Exchange) QueryRewards(ctx context.Context, startTime time.Time) ([]typ
case binanceapi.RebateTypeCommission:
// use the default type
}
rewards = append(rewards, types.Reward{
UUID: strconv.FormatInt(entry.UpdateTime.Time().UnixMilli(), 10),
Exchange: types.ExchangeBinance,

View File

@ -10,13 +10,13 @@ import (
type RewardType string
const (
RewardAirdrop = RewardType("airdrop")
RewardCommission = RewardType("commission")
RewardAirdrop = RewardType("airdrop")
RewardCommission = RewardType("commission")
RewardReferralKickback = RewardType("referral_kickback")
RewardHolding = RewardType("holding")
RewardMining = RewardType("mining")
RewardTrading = RewardType("trading")
RewardVipRebate = RewardType("vip_rebate")
RewardHolding = RewardType("holding")
RewardMining = RewardType("mining")
RewardTrading = RewardType("trading")
RewardVipRebate = RewardType("vip_rebate")
)
type Reward struct {