| 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.Min; | 
| import javax.validation.constraints.NotNull; | 
| import java.math.BigDecimal; | 
|   | 
| /** | 
|  * @author wzy | 
|  * @date 2020-06-02 | 
|  **/ | 
| @Data | 
| @ApiModel(value = "ChangeBondDto", description = "调整保证金接口接受参数类") | 
| public class ChangeBondDto { | 
|   | 
|     public static final int TYPE_ADD = 1; | 
|   | 
|     public static final int TYPE_REDUCE = 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 = "90.00") | 
|     private BigDecimal amount; | 
| } |