KKSU
2024-05-07 09bf543c6337b1e0d56aced14959332cb99d0561
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
package cc.mrbird.febs.dapp.dto;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
 
/**
 * @author wzy
 * @date 2022-05-27
 **/
@Data
@ApiModel(value = "TransferDto", description = "转账接口参数类")
public class TransferDto {
 
    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "1-质押", example = "1")
    private Integer type;
 
    @ApiModelProperty(value = "交易hash", example = "123")
    private String txHash;
 
    @Valid
    @NotNull(message = "数量不能为空")
    @Min(0)
    @ApiModelProperty(value = "数量", example = "1")
    private BigDecimal amount;
 
    @ApiModelProperty(value = "价格", example = "1.0")
    private BigDecimal price;
 
    @ApiModelProperty(value = "id", example = "1")
    private Long id;
 
    @ApiModelProperty(value = "success/fail", example = "success")
    private String flag;
}