From 1b0e20f11a920ba8c0c38e4c8fef58e8fa1fe0d2 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Tue, 14 Jul 2020 19:41:31 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/chonggaoxiao/new_excoin --- 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