|  |  |  | 
|---|
|  |  |  | @ApiModel(value = "ProfitOrLessDto", description = "设置止盈止损接口参数类") | 
|---|
|  |  |  | public class ProfitOrLessDto { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 类型 止盈 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public static final int TYPE_PROFIT = 1; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 类型 止损 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public static final int TYPE_LESS = 2; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @NotNull | 
|---|
|  |  |  | @ApiModelProperty(value = "订单ID", example = "1") | 
|---|
|  |  |  | private Long id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @NotNull | 
|---|
|  |  |  | @ApiModelProperty(value = "类型 1-止盈2-止损", example = "1") | 
|---|
|  |  |  | private Integer type; | 
|---|
|  |  |  | @ApiModelProperty(value = "止盈价", example = "9000.00") | 
|---|
|  |  |  | private BigDecimal stopProfitPrice; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @NotNull | 
|---|
|  |  |  | @Min(0) | 
|---|
|  |  |  | @ApiModelProperty(value = "目标价格", example = "9000.00") | 
|---|
|  |  |  | private BigDecimal price; | 
|---|
|  |  |  | @ApiModelProperty(value = "止损价", example = "9000.00") | 
|---|
|  |  |  | private BigDecimal stopLessPrice; | 
|---|
|  |  |  | } | 
|---|