Documentation
¶
Overview ¶
*
- Copyright 2015 @ at3.net.
- name : helper
- author : jarryliu
- date : 2016-11-29 17:04
- description :
- history :
*
- Copyright 2015 @ at3.net.
- name : parser.go
- author : jarryliu
- date : 2016-11-17 15:07
- description :
- history :
Index ¶
- func AttrArrayDto(src []*product.AttrValue) []*proto.SAttr
- func AttrValueArrayDto(src []*product.AttrValue) []*proto.SAttrValue
- func FromSaleLabelDto(src *proto.SItemLabel) *item.Label
- func ItemDataDto(src item.GoodsItem) *proto.SItemDataResponse
- func ItemDtoV2(src item.GoodsItem) *proto.SUnifiedViewItem
- func LevelPriceDto(src *item.MemberPrice) *proto.SLevelPrice
- func NewPostedData(data map[string]string, req *proto.SubmitOrderRequest) order.IPostedData
- func OrderDto(src *order.ComplexOrder) *proto.SSingleOrder
- func OrderItem(src *proto.SOrderItem) *order.ComplexItem
- func OrderItemDto(src *order.ComplexItem) *proto.SOrderItem
- func PagingResult(total int, data interface{}, err error) *proto.SPagingResult
- func ParentOrderDto(src *order.ComplexOrder) *proto.SParentOrder
- func ParseCartItem(item *cart.NormalCartItem) *proto.SShoppingCartItem
- func ParseGoodsDto_(src *valueobject.Goods) *proto.SUnifiedViewItem
- func ParseGoodsItem(src *proto.SaveItemRequest) *item.GoodsItem
- func ParseItemSnapshotDto(src *item.Snapshot) *proto.ItemSnapshotResponse
- func ParseLevelPrice(src *proto.SLevelPrice) *item.MemberPrice
- func ParseOrderItem(v *dto.OrderItem) *proto.SOrderItem
- func ParsePrepareOrderGroups(ic cart.ICart) []*proto.SPrepareOrderGroup
- func ParseSaleLabelDto(src *item.Label) *proto.SItemLabel
- func ParseToDtoCart(ic cart.ICart) *proto.SShoppingCart
- func ParseTradeSnapshot(src *item.TradeSnapshot) *proto.STradeSnapshot
- func PrepareOrderDto(src *order.ComplexOrder) *proto.PrepareOrderResponse
- func PriceArrayDto(src []*item.MemberPrice) []*proto.SLevelPrice
- func Sku(src *proto.SSku) *item.Sku
- func SkuArrayDto(src []*item.Sku) []*proto.SSku
- func SkuDto(src *item.Sku) *proto.SSku
- func SpecOptionsDto(list promodel.SpecList) []*proto.SSpecOption
- func SubOrderItemDto(src *order.SubOrderItem) *proto.SOrderItem
- func WsItemDiscount(src *proto.SWsItemDiscount) *item.WsItemDiscount
- func WsItemDiscountDto(src *item.WsItemDiscount) *proto.SWsItemDiscount
- func WsSkuPrice(src *proto.SWsSkuPrice) *item.WsSkuPrice
- func WsSkuPriceDto(src *item.WsSkuPrice) *proto.SWsSkuPrice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttrValueArrayDto ¶ added in v0.4.10
func AttrValueArrayDto(src []*product.AttrValue) []*proto.SAttrValue
func FromSaleLabelDto ¶
func FromSaleLabelDto(src *proto.SItemLabel) *item.Label
func ItemDataDto ¶ added in v0.4.9
func ItemDataDto(src item.GoodsItem) *proto.SItemDataResponse
func LevelPriceDto ¶
func LevelPriceDto(src *item.MemberPrice) *proto.SLevelPrice
func NewPostedData ¶ added in v0.4.10
func NewPostedData(data map[string]string, req *proto.SubmitOrderRequest) order.IPostedData
func OrderDto ¶
func OrderDto(src *order.ComplexOrder) *proto.SSingleOrder
func OrderItem ¶
func OrderItem(src *proto.SOrderItem) *order.ComplexItem
func OrderItemDto ¶
func OrderItemDto(src *order.ComplexItem) *proto.SOrderItem
func PagingResult ¶
func PagingResult(total int, data interface{}, err error) *proto.SPagingResult
func ParentOrderDto ¶ added in v0.4.10
func ParentOrderDto(src *order.ComplexOrder) *proto.SParentOrder
func ParseCartItem ¶
func ParseCartItem(item *cart.NormalCartItem) *proto.SShoppingCartItem
func ParseGoodsDto_ ¶
func ParseGoodsDto_(src *valueobject.Goods) *proto.SUnifiedViewItem
func ParseGoodsItem ¶
func ParseGoodsItem(src *proto.SaveItemRequest) *item.GoodsItem
func ParseItemSnapshotDto ¶
func ParseItemSnapshotDto(src *item.Snapshot) *proto.ItemSnapshotResponse
func ParseLevelPrice ¶
func ParseLevelPrice(src *proto.SLevelPrice) *item.MemberPrice
func ParseOrderItem ¶
func ParseOrderItem(v *dto.OrderItem) *proto.SOrderItem
func ParsePrepareOrderGroups ¶ added in v0.4.4
func ParsePrepareOrderGroups(ic cart.ICart) []*proto.SPrepareOrderGroup
func ParseSaleLabelDto ¶
func ParseSaleLabelDto(src *item.Label) *proto.SItemLabel
func ParseToDtoCart ¶
func ParseToDtoCart(ic cart.ICart) *proto.SShoppingCart
func ParseTradeSnapshot ¶
func ParseTradeSnapshot(src *item.TradeSnapshot) *proto.STradeSnapshot
func PrepareOrderDto ¶ added in v0.4.4
func PrepareOrderDto(src *order.ComplexOrder) *proto.PrepareOrderResponse
PrepareOrderDto 转换为预生成订单
func PriceArrayDto ¶
func PriceArrayDto(src []*item.MemberPrice) []*proto.SLevelPrice
func SpecOptionsDto ¶ added in v0.4.4
func SpecOptionsDto(list promodel.SpecList) []*proto.SSpecOption
func SubOrderItemDto ¶
func SubOrderItemDto(src *order.SubOrderItem) *proto.SOrderItem
func WsItemDiscount ¶
func WsItemDiscount(src *proto.SWsItemDiscount) *item.WsItemDiscount
func WsItemDiscountDto ¶
func WsItemDiscountDto(src *item.WsItemDiscount) *proto.SWsItemDiscount
func WsSkuPrice ¶
func WsSkuPrice(src *proto.SWsSkuPrice) *item.WsSkuPrice
func WsSkuPriceDto ¶
func WsSkuPriceDto(src *item.WsSkuPrice) *proto.SWsSkuPrice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.