From 5ffa4ccd62c2f32b5808e0a5f6c9a65142c201ff Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 25 Nov 2021 10:20:37 +0800 Subject: [PATCH] Merge branch 'fish' of http://120.27.238.55:7000/r/exchange into fish --- src/main/java/com/xcong/excoin/modules/fish/dto/CoinGoldExchangeDto.java | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/fish/dto/CoinGoldExchangeDto.java b/src/main/java/com/xcong/excoin/modules/fish/dto/CoinGoldExchangeDto.java index 8404623..07ab17b 100644 --- a/src/main/java/com/xcong/excoin/modules/fish/dto/CoinGoldExchangeDto.java +++ b/src/main/java/com/xcong/excoin/modules/fish/dto/CoinGoldExchangeDto.java @@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import javax.validation.constraints.DecimalMin; import javax.validation.constraints.NotNull; import java.math.BigDecimal; @@ -12,6 +13,7 @@ public class CoinGoldExchangeDto { @NotNull(message = "兑换金额不能为空") + @DecimalMin(value = "1",message = "兑换数量最小为1") @ApiModelProperty(value = "兑换金额", example = "100") private BigDecimal balance; -- Gitblit v1.9.1