dividend.go
1.2 KB
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
package protocol
const (
BonusTotal = iota //0 累计分红
BonusOutstanding //1 分红支出
)
/*DividendStatistics 分红统计*/
type DividendStatisticsRequest struct {
StartTime int64 `json:"startTime" valid:"Required"`
EndTime int64 `json:"endTime" valid:"Required"`
//分红类型(0累计分红、1分红支出)
DividendAction int `json:"dividendAction"`
}
type DividendStatisticsResponse struct {
Statistics DividendStatistics `json:"statistics"`
}
type DividendStatistics struct {
Received float64 `json:"received"` //总已收分红
Outstanding float64 `json:"outstanding"` //总未收分红/分红支出
Quarters []Bonus `json:"quarters"`
}
type Bonus struct {
Received float64 `json:"received"` //已收分红
Outstanding float64 `json:"outstanding"` //未收分红/分红支出
}
/*DividendOrders 分红订单*/
type DividendOrdersRequest struct {
DetailAction int `json:"detailAction"` //明细类型(0已收明细、1未收明细)
DividendAction int `json:"dividendAction"` //分红类型(0累计分红、1分红支出)
StartTime int64 `json:"startTime" valid:"Required"`
EndTime int64 `json:"endTime" valid:"Required"`
}
type DividendOrdersResponse struct {
}