xiaoyong931011
2020-06-09 46f6f884bad7294ea8ece4e01796365bb59beb8b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.xcong.excoin.modules.coin.parameter.dto;
 
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
@Data
@ApiModel(value = "SubmitSalesWalletCoinOrderDto", description = "提交买卖订单参数接收类")
public class SubmitSalesWalletCoinOrderDto {
 
 
    @NotNull(message = "币种不能为空")
    @ApiModelProperty(value = "币种", example = "BTC")
    private String symbol;
 
    @NotNull(message = "交易类型不能为空")
    @ApiModelProperty(value = "买入卖出类型买入:1,卖出:2", example = "1")
    private Integer type;
    
    @NotNull(message = "交易方式不能为空")
    @ApiModelProperty(value = "市价:1,限价:2", example = "1")
    private Integer tradeType;
    
    @NotNull(message = "数量不能为空")
    @ApiModelProperty(value = "数量", example = "100")
    private BigDecimal amount;
 
    @NotNull(message = "建仓价不能为空")
    @ApiModelProperty(value = "建仓价", example = "20.0000")
    private BigDecimal price;
 
}