forked from yangzongzhuan/RuoYi-Cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
846d852
commit 826f028
Showing
14 changed files
with
265 additions
and
8 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
ruoyi-api/ruoyi-api-client/src/main/java/com/ruoyi/client/RemoteClientWalletService.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,16 @@ | ||
package com.ruoyi.client; | ||
|
||
import com.ruoyi.client.domain.ClientUserWallet; | ||
import com.ruoyi.common.core.constant.ServiceNameConstants; | ||
import com.ruoyi.common.core.domain.R; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
|
||
@FeignClient(contextId = "remoteClientWalletService", value = ServiceNameConstants.CLIENT_SERVICE) | ||
public interface RemoteClientWalletService { | ||
|
||
@PostMapping("/wallet/detail") | ||
public R<ClientUserWallet> getUserWallet(@RequestBody ClientUserWallet clientUserWallet); | ||
|
||
} |
114 changes: 114 additions & 0 deletions
114
ruoyi-api/ruoyi-api-client/src/main/java/com/ruoyi/client/domain/ClientUserWallet.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,114 @@ | ||
package com.ruoyi.client.domain; | ||
|
||
import com.ruoyi.common.core.annotation.Excel; | ||
import com.ruoyi.common.core.web.domain.BaseEntity; | ||
import org.apache.commons.lang3.builder.ToStringBuilder; | ||
import org.apache.commons.lang3.builder.ToStringStyle; | ||
|
||
import java.math.BigDecimal; | ||
|
||
/** | ||
* 用户资产对象 client_user_wallet | ||
* | ||
* @author ruoyi | ||
* @date 2023-08-29 | ||
*/ | ||
public class ClientUserWallet extends BaseEntity | ||
{ | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** 主键 */ | ||
@Excel(name = "主键") | ||
private Long id; | ||
|
||
/** 用户id */ | ||
@Excel(name = "用户id") | ||
private Long userId; | ||
|
||
/** 总金额 */ | ||
@Excel(name = "总金额") | ||
private BigDecimal totalAmount; | ||
|
||
/** 币种 */ | ||
@Excel(name = "币种") | ||
private String currency; | ||
|
||
/** 状态(normal/freeze) */ | ||
@Excel(name = "状态(normal/freeze)") | ||
private String status; | ||
|
||
/** 删除标识 */ | ||
private Long delFlag; | ||
|
||
public void setId(Long id) | ||
{ | ||
this.id = id; | ||
} | ||
|
||
public Long getId() | ||
{ | ||
return id; | ||
} | ||
public void setUserId(Long userId) | ||
{ | ||
this.userId = userId; | ||
} | ||
|
||
public Long getUserId() | ||
{ | ||
return userId; | ||
} | ||
public void setTotalAmount(BigDecimal totalAmount) | ||
{ | ||
this.totalAmount = totalAmount; | ||
} | ||
|
||
public BigDecimal getTotalAmount() | ||
{ | ||
return totalAmount; | ||
} | ||
public void setCurrency(String currency) | ||
{ | ||
this.currency = currency; | ||
} | ||
|
||
public String getCurrency() | ||
{ | ||
return currency; | ||
} | ||
public void setStatus(String status) | ||
{ | ||
this.status = status; | ||
} | ||
|
||
public String getStatus() | ||
{ | ||
return status; | ||
} | ||
public void setDelFlag(Long delFlag) | ||
{ | ||
this.delFlag = delFlag; | ||
} | ||
|
||
public Long getDelFlag() | ||
{ | ||
return delFlag; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||
.append("id", getId()) | ||
.append("userId", getUserId()) | ||
.append("totalAmount", getTotalAmount()) | ||
.append("currency", getCurrency()) | ||
.append("status", getStatus()) | ||
.append("remark", getRemark()) | ||
.append("delFlag", getDelFlag()) | ||
.append("createTime", getCreateTime()) | ||
.append("createBy", getCreateBy()) | ||
.append("updateTime", getUpdateTime()) | ||
.append("updateBy", getUpdateBy()) | ||
.toString(); | ||
} | ||
} |
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
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
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
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
23 changes: 23 additions & 0 deletions
23
...les/ruoyi-market/src/main/java/com/ruoyi/market/domain/req/ExchangeOrderCalculateReq.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,23 @@ | ||
package com.ruoyi.market.domain.req; | ||
|
||
import lombok.Data; | ||
import lombok.ToString; | ||
|
||
import java.io.Serializable; | ||
import java.math.BigDecimal; | ||
|
||
@Data | ||
@ToString | ||
public class ExchangeOrderCalculateReq implements Serializable { | ||
|
||
private String productCode; | ||
|
||
private String direct; | ||
|
||
private BigDecimal exchangePrice; | ||
|
||
private BigDecimal multiplier; | ||
|
||
private BigDecimal sheetNum; | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
...dules/ruoyi-market/src/main/java/com/ruoyi/market/domain/vo/ExchangeOrderCalculateVo.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,19 @@ | ||
package com.ruoyi.market.domain.vo; | ||
|
||
import lombok.Data; | ||
import lombok.ToString; | ||
|
||
import java.io.Serializable; | ||
import java.math.BigDecimal; | ||
|
||
@Data | ||
@ToString | ||
public class ExchangeOrderCalculateVo implements Serializable { | ||
|
||
private BigDecimal feeAmount; | ||
|
||
private BigDecimal margin; | ||
|
||
private BigDecimal totalBalance; | ||
|
||
} |
5 changes: 4 additions & 1 deletion
5
ruoyi-modules/ruoyi-market/src/main/java/com/ruoyi/market/domain/vo/ProductConfigVo.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
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
Oops, something went wrong.