entity

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeEntity

type AttributeEntity struct {
	AttributeID           int64                  `json:"attribute_id"`
	OriginalAttributeName string                 `json:"original_attribute_name"`
	IsMandatory           bool                   `json:"is_mandatory"`
	AttributeType         int                    `json:"attribute_type"`
	AttributeValueList    []AttributeValueEntity `json:"attribute_value_list"`
}

AttributeEntity

func (AttributeEntity) String

func (a AttributeEntity) String() string

String

type AttributeValueEntity

type AttributeValueEntity struct {
	ValueID           int64  `json:"value_id"`
	OriginalValueName string `json:"original_value_name"`
	ValueUnit         string `json:"value_unit"`
}

AttributeValueEntity

func (AttributeValueEntity) String

func (a AttributeValueEntity) String() string

String

type BrandEntity

type BrandEntity struct {
	BrandID           int64  `json:"brand_id"`
	OriginalBrandName string `json:"original_brand_name"`
}

BrandEntity

func (BrandEntity) String

func (b BrandEntity) String() string

String

type CommentReplyEntity

type CommentReplyEntity struct {
	Reply  string `json:"reply"`
	Hidden bool   `json:"hidden"`
}

CommentReplyEntity

func (CommentReplyEntity) String

func (c CommentReplyEntity) String() string

String

type DimensionEntity

type DimensionEntity struct {
	PackageLength int `json:"package_length"`
	PackageWidth  int `json:"package_width"`
	PackageHeight int `json:"package_height"`
}

DimensionEntity

func (DimensionEntity) String

func (d DimensionEntity) String() string

String

type GetCommentResult

type GetCommentResult struct {
	commonentity.Result
	Response GetCommentResultResponse `json:"response"`
}

GetCommentResult

func (GetCommentResult) String

func (g GetCommentResult) String() string

String

type GetCommentResultResponse

type GetCommentResultResponse struct {
	More            bool                `json:"more"`
	ItemCommentList []ItemCommentEntity `json:"item_comment_list"`
	NextCursor      string              `json:"next_cursor"`
}

GetCommentResultResponse

func (GetCommentResultResponse) String

func (g GetCommentResultResponse) String() string

String

type GetItemBaseInfoResult

type GetItemBaseInfoResult struct {
	commonentity.Result
	Response GetItemBaseInfoResultResponse `json:"response"`
	Warning  string                        `json:"warning"`
}

GetItemBaseInfoResult

func (GetItemBaseInfoResult) String

func (g GetItemBaseInfoResult) String() string

String

type GetItemBaseInfoResultResponse

type GetItemBaseInfoResultResponse struct {
	ItemList []ItemEntity `json:"item_list"`
}

GetItemBaseInfoResultResponse

func (GetItemBaseInfoResultResponse) String

String

type GetItemExtraInfoResult

type GetItemExtraInfoResult struct {
	commonentity.Result
	Response GetItemExtraInfoResultResponse `json:"response"`
	Warning  string                         `json:"warning"`
}

GetItemExtraInfoResult

func (GetItemExtraInfoResult) String

func (g GetItemExtraInfoResult) String() string

String

type GetItemExtraInfoResultResponse

type GetItemExtraInfoResultResponse struct {
	ItemList []ItemExtraEntity `json:"item_list"`
}

GetItemExtraInfoResultResponse

func (GetItemExtraInfoResultResponse) String

String

type GetItemListResult

type GetItemListResult struct {
	commonentity.Result
	Response GetItemListResultResponse `json:"response"`
	Warning  string                    `json:"warning"`
}

GetItemListResult

func (GetItemListResult) String

func (g GetItemListResult) String() string

String

type GetItemListResultResponse

type GetItemListResultResponse struct {
	Item        []ItemListEntity `json:"item"`
	TotalCount  int              `json:"total_count"`
	HasNextPage bool             `json:"has_next_page"`
	NextOffset  int              `json:"next_offset"`
}

GetItemListResultResponse

func (GetItemListResultResponse) String

func (g GetItemListResultResponse) String() string

String

type ImageEntity

type ImageEntity struct {
	ImageUrlList []string `json:"image_url_list"`
	ImageIdList  []string `json:"image_id_list"`
}

ImageEntity

func (ImageEntity) String

func (i ImageEntity) String() string

String

type ItemCommentEntity

type ItemCommentEntity struct {
	OrderSn       string             `json:"order_sn"`
	CommentID     int64              `json:"comment_id"`
	Comment       string             `json:"comment"`
	BuyerUsername string             `json:"buyer_username"`
	ItemID        int64              `json:"item_id"`
	ModelID       int64              `json:"model_id"`
	RatingStar    int                `json:"rating_star"`
	Editable      string             `json:"editable"`
	Hidden        bool               `json:"hidden"`
	CreateTime    int                `json:"create_time"`
	CommentReply  CommentReplyEntity `json:"comment_reply"`
}

ItemCommentEntity

func (ItemCommentEntity) String

func (i ItemCommentEntity) String() string

String

type ItemEntity

type ItemEntity struct {
	ItemID        int64                `json:"item_id"`
	CategoryID    int64                `json:"category_id"`
	ItemName      string               `json:"item_name"`
	Description   string               `json:"description"`
	ItemSku       string               `json:"item_sku"`
	CreateTime    int                  `json:"create_time"`
	UpdateTime    int                  `json:"update_time"`
	AttributeList []AttributeEntity    `json:"attribute_list"`
	PriceInfo     []PriceInfoEntity    `json:"price_info"`
	StockInfo     []StockInfoEntity    `json:"stock_info"`
	Image         ImageEntity          `json:"image"`
	Weight        string               `json:"weight"`
	Dimension     DimensionEntity      `json:"dimension"`
	LogisticInfo  []LogisticInfoEntity `json:"logistic_info"`
	PreOrder      PreOrderEntity       `json:"pre_order"`
	Wholesales    []WholesalesEntity   `json:"wholesales"`
	Condition     string               `json:"condition"`
	SizeChart     string               `json:"size_chart"`
	ItemStatus    string               `json:"item_status"`
	HasModel      bool                 `json:"has_model"`
	PromotionID   int64                `json:"promotion_id"`
	VideoInfo     []VideoInfoEntity    `json:"video_info"`
	Brand         BrandEntity          `json:"brand"`
	ItemDangerous int                  `json:"item_dangerous"`
}

ItemEntity

func (ItemEntity) String

func (i ItemEntity) String() string

String

type ItemExtraEntity

type ItemExtraEntity struct {
	ItemID       int64   `json:"item_id"`
	Sale         int     `json:"sale"`
	Views        int     `json:"views"`
	Likes        int     `json:"likes"`
	RatingStar   float32 `json:"rating_star"`
	CommentCount int     `json:"comment_count"`
}

ItemEntity

func (ItemExtraEntity) String

func (i ItemExtraEntity) String() string

String

type ItemListEntity

type ItemListEntity struct {
	ItemID     int64  `json:"item_id"`
	ItemStatus string `json:"item_status"`
	UpdateTime int    `json:"update_time"`
}

ItemListEntity

func (ItemListEntity) String

func (i ItemListEntity) String() string

String

type LogisticInfoEntity

type LogisticInfoEntity struct {
	LogisticID           int64   `json:"logistic_id"`
	LogisticName         string  `json:"logistic_name"`
	Enabled              bool    `json:"enabled"`
	ShippingFee          float32 `json:"shipping_fee"`
	SizeID               int64   `json:"size_id"`
	IsFree               bool    `json:"is_free"`
	EstimatedShippingFee bool    `json:"estimated_shipping_fee"`
}

LogisticInfoEntity

func (LogisticInfoEntity) String

func (l LogisticInfoEntity) String() string

String

type PreOrderEntity

type PreOrderEntity struct {
	IsPreOrder bool `json:"is_pre_order"`
	DaysToShip int  `json:"days_to_ship"`
}

PreOrderEntity

func (PreOrderEntity) String

func (p PreOrderEntity) String() string

String

type PriceInfoEntity

type PriceInfoEntity struct {
	Currency                     string  `json:"currency"`
	OriginalPrice                float32 `json:"original_price"`
	CurrentPrice                 float32 `json:"current_price"`
	InflatedPriceOfOriginalPrice float32 `json:"inflated_price_of_original_price"`
	InflatedPriceOfCurrentPrice  float32 `json:"inflated_price_of_current_price"`
	SipItemPrice                 float32 `json:"sip_item_price"`
	SipItemPriceSource           string  `json:"sip_item_price_source"`
}

PriceInfoEntity

func (PriceInfoEntity) String

func (p PriceInfoEntity) String() string

String

type ReplyCommentRequestCommentEntity

type ReplyCommentRequestCommentEntity struct {
	CommentID int64  `json:"comment_id"`
	Comment   string `json:"comment"`
}

ReplyCommentRequestCommentEntity

func (ReplyCommentRequestCommentEntity) String

String

type ReplyCommentResult

type ReplyCommentResult struct {
	commonentity.Result
	Response ReplyCommentResultResponse `json:"response"`
	Warning  []string                   `json:"warning"`
}

ReplyCommentResult

func (ReplyCommentResult) String

func (r ReplyCommentResult) String() string

String

type ReplyCommentResultList

type ReplyCommentResultList struct {
	CommentID   int64  `json:"comment_id"`
	FailError   string `json:"fail_error"`
	FailMessage string `json:"fail_message"`
}

ReplyCommentResultList

type ReplyCommentResultResponse

type ReplyCommentResultResponse struct {
	ResultList []ReplyCommentResultList `json:"result_list"`
}

ReplyCommentResultResponse

func (ReplyCommentResultResponse) String

String

type StockInfoEntity

type StockInfoEntity struct {
	StockType       int    `json:"stock_type"`
	StockLocationID string `json:"stock_location_id"`
	CurrentStock    int    `json:"current_stock"`
	NormalStock     int    `json:"normal_stock"`
	ReservedStock   int    `json:"reserved_stock"`
}

StockInfoEntity

func (StockInfoEntity) String

func (s StockInfoEntity) String() string

String

type VideoInfoEntity

type VideoInfoEntity struct {
	VideoUrl     string `json:"video_url"`
	ThumbnailUrl string `json:"thumbnail_url"`
	Duration     int    `json:"duration"`
}

VideoInfoEntity

func (VideoInfoEntity) String

func (v VideoInfoEntity) String() string

String

type WholesalesEntity

type WholesalesEntity struct {
	MinCount                 int     `json:"min_count"`
	MaxCount                 int     `json:"max_count"`
	UnitPrice                float32 `json:"unit_price"`
	InflatedPriceOfUnitPrice float32 `json:"inflated_price_of_unit_price"`
}

WholesalesEntity

func (WholesalesEntity) String

func (w WholesalesEntity) String() string

String

Jump to

Keyboard shortcuts

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