parser

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: GPL-2.0 Imports: 16 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttrArrayDto added in v0.4.10

func AttrArrayDto(src []*product.AttrValue) []*proto.SAttr

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 ItemDtoV2

func ItemDtoV2(src item.GoodsItem) *proto.SUnifiedViewItem

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 Sku

func Sku(src *proto.SSku) *item.Sku

func SkuArrayDto

func SkuArrayDto(src []*item.Sku) []*proto.SSku

func SkuDto

func SkuDto(src *item.Sku) *proto.SSku

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.

Jump to

Keyboard shortcuts

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