zainali5120
2020-09-13 df1716a9abacac95261d686bdf0776bc7d6deca2
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,19 +18,24 @@
   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;
   
   @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;
}