/
type.go
95 lines (87 loc) · 1.48 KB
/
type.go
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package cregis_sdk_go
type Result[T any] struct {
Code string `json:"code"`
Msg string `json:"msg"`
Data T `json:"data"`
}
type AddressLegal struct {
/**
* 地址是否合法
*/
Result bool `json:"result"`
}
type AddressInner struct {
/**
* 地址是否合法
*/
Result bool `json:"result"`
}
type ProjectCoin struct {
CoinName string `json:"coin_name"`
ChainId string `json:"chain_id"`
TokenId string `json:"token_id"`
}
type ProjectCoins struct {
PayoutCoins []*ProjectCoin `json:"payout_coins"`
AddressCoins []*ProjectCoin `json:"address_coins"`
OrderCoins []*ProjectCoin `json:"order_coins"`
}
type Payout struct {
/**
* 转出订单编号
*/
Cid int64 `json:"cid"`
}
type PayoutQuery struct {
/**
* 项目编号
*/
Pid int64 `json:"pid"`
/**
* 地址
*/
Address string `json:"address"`
/**
* 链编号
*/
ChainId string `json:"chain_id"`
/**
* 代币编号
*/
TokenId string `json:"token_id"`
/**
* 币种标识
*/
Currency string `json:"currency"`
/**
* 金额
*/
Amount string `json:"amount"`
/**
* 调用方业务编号
*/
ThirdPartyId string `json:"third_party_id"`
/**
* 备注
*/
Remark string `json:"remark"`
/**
* 状态
*/
Status int `json:"status"`
/**
* 交易哈希
*/
TxId string `json:"txid"`
/**
* 区块高度
*/
BlockHeight string `json:"block_height"`
/**
* 区块时间
*/
BlockTime string `json:"block_time"`
}
type ProjectAddress struct {
Address string `json:"address"`
}