create_order_payment.go 637 字节
package command

type CreateOrderPaymentCommand struct {
	//订单编号
	OrderId            int64                `json:"orderId"`
	DivdendPaymentItem []DivdendPyamentItem `json:"dividendPayment"`
	TotalPaymentAmount float64              `json:"payment_amount"`
}

type DivdendPyamentItem struct {
	// 货款
	PaymentForGoods float64 `json:"paymentForGoods,omitempty"`
	// 支付状态
	StateOfPayment int `json:"stateOfPayment,omitempty"`
	//支付批次
	PaymentSn int `json:"paymentSn,omitempty"`
	//支付编号
	PaymentId int `json:"id,omitempty"`
}

func (command CreateOrderPaymentCommand) ValidateCommand() error {
	return nil
}