Helius
2020-06-02 05914963848b06637eccff5085004ddb591d5d02
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
35
36
37
38
39
40
41
42
package com.xcong.excoin.modules.contract.parameter.dto;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
 
/**
 * @author wzy
 * @date 2020-06-02
 **/
@Data
@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;
 
    @NotNull
    @Min(0)
    @ApiModelProperty(value = "目标价格", example = "9000.00")
    private BigDecimal price;
}