From 3b51e28456fc8c3ca03a27df70645b82c1a1530b Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 08 Sep 2020 18:00:30 +0800
Subject: [PATCH] modify

---
 src/main/java/com/xcong/excoin/modules/coin/parameter/dto/SubmitSalesWalletCoinOrderDto.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 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 b8b0ac1..b15186a 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;
@@ -16,13 +18,14 @@
 	private String symbol;
 
 	@NotNull(message = "交易类型不能为空")
-    @ApiModelProperty(value = "买入卖出类型买入:1,卖出:2", example = "USDT")
+    @ApiModelProperty(value = "买入卖出类型买入:1,卖出:2", example = "1")
     private Integer type;
 	
 	@NotNull(message = "交易方式不能为空")
     @ApiModelProperty(value = "市价:1,限价:2", example = "1")
 	private Integer tradeType;
 	
+    @Min(0)
 	@NotNull(message = "数量不能为空")
 	@ApiModelProperty(value = "数量", example = "100")
 	private BigDecimal amount;

--
Gitblit v1.9.1