package protocol

/*OrderDetail */
type OrderDetailRequest struct {
	Id int64 `json:"id"`
}
type OrderDetailResponse struct {
	Order interface{} `json:"order"`
}
type OrderDetail struct {
	Id                int64       `json:"id"`
	OrderNo           string      `json:"orderNo"`
	OrderName         string      `json:"orderName"`
	OrderStatus       int         `json:"orderStatus"`
	CreateTime        int64       `json:"createTime"`
	UpdateTime        int64       `json:"updateTime"`
	OrderQuantity     int         `json:"orderQuantity"`
	OrderAmount       float64     `json:"orderAmount"`
	OrderAmountCancel float64     `json:"orderAmountCancel"`
	OrderDistrict     interface{} `json:"orderDistrict"`
	Customer          Customer    `json:"customer"`
	MyDividend        float64     `json:"myDividend"`
	MyDividendPercent float64     `json:"myDividendPercent"`
}
type Customer struct {
	Uname string `json:"uname"`
	Phone string `json:"phone"`
}

/*OrderStatistics */
type OrderStatisticsRequest struct {
}
type OrderStatisticsResponse struct {
	Statistics OrderStatics `json:"statistics"`
}
type OrderStatics struct {
	TodayIntentionQuantity int     `json:"todayIntentionQuantity"` //今日新增意向订单
	TodayIntentionMoney    float64 `json:"todayIntentionMoney"`    //今日新增意向订单金额
	TodayRealQuantity      int     `json:"todayRealQuantity"`      //今日新增实发订单
	TodayRealMoney         float64 `json:"todayRealMoney"`         //今日新增实发订单金额
	CumulativeQuantity     int     `json:"cumulativeQuantity"`     //累计实发订单
	CumulativeMoney        float64 `json:"cumulativeMoney"`        //累计实发订单金额
}

/*OrderList */
type OrderListRequest struct {
	StartTime   int64 `json:"startTime"`
	EndTime     int64 `json:"endTime"`
	OrderAction int   `json:"orderAction"`
	PageIndex   int   `json:"pageIndex"`
	PageSize    int   `json:"pageSize" valid:"Required"`
}
type OrderListResponse struct {
	List       []*OrderListItem       `json:"list"`
	Statistics map[string]interface{} `json:"statistics"`
}

type OrderListItem struct {
	//id
	Id int64 `json:"id,omitempty"`
	//订单类型
	OrderType int `json:"orderType"`
	//订单编号
	OrderNo string `json:"orderNo"`
	//订单名称
	OrderName string `json:"orderName"`
	//订单状态
	OrderStatus int `json:"orderStatus"`
	//实际订单数量
	OrderActualCount int `json:"orderActualCount"`
	//订单金额
	OrderAmount float64 `json:"orderAmount"`
	UpdateTime  int64   `json:"updateTime"`
	//我的分红
	MyDividend float64 `json:"myDividend"`
	//是否已读(0未读,1已读)
	IsRead int `json:"isRead"`
}