order_query.go
1.5 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
39
40
41
42
43
package domain
type OrderStatic struct {
CumulativeQuantity int `json:"cumulativeQuantity"` //累计数量
CumulativeMoney int `json:"cumulativeMoney"` //累计金额
}
type OrderStaticQuery struct {
PartnerId int64 `json:"partnerId,omitempty"`
BeginTime int64 `json:"beginTime,omitempty"`
EndTime int64 `json:"endTime,omitempty"`
OrderStatus int `json:"orderStatus,omitempty"`
OrderType int `json:"orderType,omitempty"`
//IsDisable int `json:"isDisable,omitempty"`
}
type DividendOrdersQuery 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 OrderBonusQuery struct {
PartnerId int64 `json:"partnerId,omitempty"`
CompanyId int64 `json:"companyId,omitempty"`
InPartnerIds []int64 `json:"inPartnerIds,omitempty"`
IsDisable int `json:"isDisable,omitempty"`
OrderType int `json:"orderType,omitempty"`
}
// 订单分红统计-应答
type OrderBonusResponse struct {
// 应收分红
Bonus float64 `json:"partnerId,omitempty"`
// 订单数量
Total int64 `json:"companyId,omitempty"`
// 分红支出
BonusExpense float64 `json:"bonusExpense,omitempty"`
// 订单金额
TotalOrderAmount float64 `json:"totalOrderAmount"`
}