zj
2025-06-30 414555cfbb72c02ebc07ca164a7ff0d0f592de13
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package project.monitor.erc20.dto;
 
public class TransactionResponseDto {
    /**
     * 自定义200为成功
     */
    public static final String CODE_LOCAL_SUCCESS ="200";
    /**
     * 自定义-1为本地失败
     */
    public static final String CODE_LOCAL_FAIL ="-1";
    /**
     * 交易返回的code,
     * 自定义200为成功
     * 自定义-1为本地失败
     * 其他为失败code
     */
    private String code;
    /**
     * 交易发起时产生hash码
     */
    private String hash;
    /**
     * 错误时会返回错误信息
     */
    private String error;
    
    public TransactionResponseDto() {
    }
    
    public TransactionResponseDto(String code, String hash, String error) {
        this.code = code;
        this.hash = hash;
        this.error = error;
    }
    public TransactionResponseDto(String hash) {
        this.code = CODE_LOCAL_SUCCESS;
        this.hash = hash;
    }
    public TransactionResponseDto(String code, String error) {
        this.code = code;
        this.error = error;
    }
    public String getCode() {
        return code;
    }
    public String getHash() {
        return hash;
    }
    public String getError() {
        return error;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public void setHash(String hash) {
        this.hash = hash;
    }
    public void setError(String error) {
        this.error = error;
    }
    
    
}