Documentation ¶
Index ¶
Constants ¶
View Source
const ( PaymentCNY = "¥" PaymentUSD = "$" CountNumber = "个" CountWeight = "克" OrderByTotal = "total" OrderByCount = "count" OrderByUnit = "unit" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscountHdr ¶
type DiscountHdr struct { Payment string // PaymentCNY, PaymentUSD TotalPrice []float64 Count string // CountNumber, CountWeight TotalCount []int OrderBy string // OrderByTotal, OrderByCount, OrderByUnit // contains filtered or unexported fields }
func NewCNYNum ¶
func NewCNYNum(tot []float64, cnt []int) *DiscountHdr
func NewCNYWeight ¶
func NewCNYWeight(tot []float64, cnt []int) *DiscountHdr
func (*DiscountHdr) Cal ¶
func (h *DiscountHdr) Cal() *DiscountHdr
func (*DiscountHdr) Log ¶
func (h *DiscountHdr) Log()
func (*DiscountHdr) Sort ¶
func (h *DiscountHdr) Sort() *DiscountHdr
Click to show internal directories.
Click to hide internal directories.