order_query.go 1.8 KB
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"`
	OrderTypes  []int `json:"orderTypes,omitempty"`
	//IsDisable   int   `json:"isDisable,omitempty"`
	PartnerCategoryId int `json:"partnerCategoryId,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"`
	OrderTypes        []int   `json:"orderTypes,omitempty"`
	PartnerCategoryId int     `json:"partnerCategoryId,omitempty"` //订单所属类型
	//IsGroupByPartnerCategoryId bool `json:"isGroupByPartnerCategoryId,omitempty"`
}

// 订单分红统计-应答
type OrderBonusResponse struct {
	// 应收分红
	Bonus float64 `json:"partnerId,omitempty"`
	// 订单数量
	Total int64 `json:"companyId,omitempty"`
	// 分红支出
	BonusExpense float64 `json:"bonusExpense,omitempty"`
	// 订单金额
	TotalOrderAmount float64 `json:"totalOrderAmount"`
	//PartnerCategory *PartnerCategoryInfo
}