-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加 /v1/trust/user/active/credit、 /v1/account/switch/user/info、 /v1/ac…
…count/overview/info、 /v1/account/fee/switch等新增接口
- Loading branch information
“VincentCai”
committed
May 21, 2024
1 parent
ef5324d
commit 19d675c
Showing
12 changed files
with
179 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/com/huobi/client/req/account/FeeSwitchRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.huobi.client.req.account; | ||
|
||
import lombok.*; | ||
|
||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@ToString | ||
public class FeeSwitchRequest { | ||
private Integer switchType; | ||
private String deductionCurrency; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/huobi/client/req/subuser/CreditRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.huobi.client.req.subuser; | ||
|
||
import lombok.*; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@ToString | ||
public class CreditRequest { | ||
private Long transactionId; | ||
private String currency; | ||
private BigDecimal amount; | ||
private Long accountId; | ||
private Long userId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.huobi.model.account; | ||
|
||
import lombok.*; | ||
|
||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@ToString | ||
public class OverviewInfo { | ||
private String currency; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.huobi.model.account; | ||
|
||
import lombok.*; | ||
|
||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@ToString | ||
public class UserInfo { | ||
private Integer pointSwitch; | ||
private Integer currencySwitch; | ||
private String deductionCurrency; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/com/huobi/service/huobi/parser/account/OverviewInfoParser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.huobi.service.huobi.parser.account; | ||
|
||
import com.alibaba.fastjson.JSONArray; | ||
import com.alibaba.fastjson.JSONObject; | ||
import com.huobi.model.account.OverviewInfo; | ||
import com.huobi.model.account.UserInfo; | ||
import com.huobi.service.huobi.parser.HuobiModelParser; | ||
|
||
import java.util.List; | ||
|
||
public class OverviewInfoParser implements HuobiModelParser<OverviewInfo> { | ||
@Override | ||
public OverviewInfo parse(JSONObject json) { | ||
return json.toJavaObject(OverviewInfo.class); | ||
} | ||
|
||
@Override | ||
public OverviewInfo parse(JSONArray json) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public List<OverviewInfo> parseArray(JSONArray jsonArray) { | ||
return null; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/com/huobi/service/huobi/parser/account/UserInfoParser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.huobi.service.huobi.parser.account; | ||
|
||
import com.alibaba.fastjson.JSONArray; | ||
import com.alibaba.fastjson.JSONObject; | ||
import com.huobi.model.account.AccountBalance; | ||
import com.huobi.model.account.UserInfo; | ||
import com.huobi.service.huobi.parser.HuobiModelParser; | ||
|
||
import java.util.List; | ||
|
||
public class UserInfoParser implements HuobiModelParser<UserInfo> { | ||
|
||
@Override | ||
public UserInfo parse(JSONObject json) { | ||
return json.toJavaObject(UserInfo.class); | ||
} | ||
|
||
@Override | ||
public UserInfo parse(JSONArray json) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public List<UserInfo> parseArray(JSONArray jsonArray) { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters