From 212b747da83e0f6d04a2bd5a12c7f9cc570adb02 Mon Sep 17 00:00:00 2001
From: zainali5120 <512061637@qq.com>
Date: Fri, 11 Jun 2021 14:40:14 +0800
Subject: [PATCH] 最新K线初始化
---
src/main/java/com/xcong/excoin/modules/coin/parameter/dto/SubmitSalesWalletCoinOrderDto.java | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/coin/parameter/dto/SubmitSalesWalletCoinOrderDto.java b/src/main/java/com/xcong/excoin/modules/coin/parameter/dto/SubmitSalesWalletCoinOrderDto.java
index 72d4b67..1395732 100644
--- a/src/main/java/com/xcong/excoin/modules/coin/parameter/dto/SubmitSalesWalletCoinOrderDto.java
+++ b/src/main/java/com/xcong/excoin/modules/coin/parameter/dto/SubmitSalesWalletCoinOrderDto.java
@@ -1,6 +1,8 @@
package com.xcong.excoin.modules.coin.parameter.dto;
import java.math.BigDecimal;
+
+import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -23,12 +25,17 @@
@ApiModelProperty(value = "市价:1,限价:2", example = "1")
private Integer tradeType;
- @NotNull(message = "数量不能为空")
+ @Min(0)
+ //@NotNull(message = "数量不能为空")
@ApiModelProperty(value = "数量", example = "100")
private BigDecimal amount;
- @NotNull(message = "建仓价不能为空")
+ //@NotNull(message = "建仓价不能为空")
@ApiModelProperty(value = "建仓价", example = "20.0000")
private BigDecimal price;
+
+ @ApiModelProperty(value = "市价时输入的总金额", example = "20.0000")
+ private BigDecimal entrustAmount;
+
}
--
Gitblit v1.9.1