xiaoyong931011
2023-08-01 8e6989a4472063a2edb5e63c16610ccf8450a562
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 java.math.BigDecimal;
 
@Data
@ApiModel(value = "TransferAusdDto", description = "转账A接口参数类")
public class TransferAusdDto {
    // 第一次{金额 amount: val, 手续费fee: 0, txHash: '', 1-买入type: 1, 钱包buyType: 2}
// 成功{type: 1, txHash: result.transactionHash, id: res.data, flag: 'success', buyType: 2}
// 失败{type: 1, id: res.data, flag: 'fail', buyType: 2}
    @ApiModelProperty(value = "1-买入A 2-卖出", example = "1")
    private Integer type;
 
    @ApiModelProperty(value = "交易hash", example = "123")
    private String txHash;
 
    @ApiModelProperty(value = "USDT金额", example = "1")
    private BigDecimal amount;
 
    @ApiModelProperty(value = "手续费", example = "1")
    private BigDecimal fee;
 
    @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;
 
    @ApiModelProperty(value = "1-余额 2-钱包")
    private Integer buyType;
 
    @ApiModelProperty(hidden = true)
    private Long memberId;
}