logic

package
v0.0.0-...-41417f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CartItem

type CartItem struct {
	Id                int                    `json:"id"`                  // cart id
	CreateTime        int64                  `json:"create_time"`         // cart create time
	GoodsSkuId        int                    `json:"goods_sku_id"`        // cart goods sku id
	GoodsNum          int                    `json:"goods_num"`           // cart goods num
	IsCheck           int                    `json:"is_check"`            // cart is check
	GoodsId           int                    `json:"goods_id"`            // goods id
	GoodsTitle        string                 `json:"goods_title"`         // goods title
	GoodsIsOnSale     int                    `json:"goods_is_on_sale"`    // goods is on sale
	GoodsFreightFee   float64                `json:"goods_freight_fee"`   // goods freight fee
	GoodsFreightId    int                    `json:"goods_freight_id"`    // goods freight id
	GoodsPayType      int                    `json:"goods_pay_type"`      // goods pay type
	GoodsPrice        float64                `json:"goods_price"`         // goods sku price
	GoodsSpec         mysql.GoodsSkuSpecJson `json:"goods_spec"`          // goods sku spec
	GoodsWeight       float64                `json:"goods_weight"`        // goods sku weight
	GoodsStock        int                    `json:"goods_stock"`         // goods sku stock
	GoodsSkuImg       string                 `json:"goods_sku_img"`       // goods sku img
	GoodsFreightAreas mysql.FreightAreasJson `json:"goods_freight_areas"` // freight areas
}

func (*CartItem) FreightFeeByAddress

func (c *CartItem) FreightFeeByAddress(address mysql.Address) (float64, error)

func (CartItem) GetFreightWay

func (c CartItem) GetFreightWay() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL