suningnetalliancerecommendcommodityquery

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityRuleList

type ActivityRuleList struct {
	SingleMaxRewardAmount string `json:"singleMaxRewardAmount"`
	BaseAddUpType         string `json:"baseAddUpType"`
	RewardQuantifierType  string `json:"rewardQuantifierType"`
	ScopeType             string `json:"scopeType"`
	BaseQuantifierType    string `json:"baseQuantifierType"`
	RewardAmount          string `json:"rewardAmount"`
	Floor                 string `json:"floor"`
	BaseAmount            string `json:"baseAmount"`
}

type AdvanceSale

type AdvanceSale struct {
	IsReserveCommodity string `json:"isReserveCommodity"`
	DepositAmount      string `json:"depositAmount"`
	DepositEndTime     string `json:"depositEndTime"`
}

type CategoryInfo

type CategoryInfo struct {
	FirstSaleCategoryID        string `json:"firstSaleCategoryId"`
	FirstSaleCategoryName      string `json:"firstSaleCategoryName"`
	SecondSaleCategoryID       string `json:"secondSaleCategoryId"`
	SecondSaleCategoryName     string `json:"secondSaleCategoryName"`
	ThirdSaleCategoryID        string `json:"thirdSaleCategoryId"`
	ThirdSaleCategoryName      string `json:"thirdSaleCategoryName"`
	FirstPurchaseCategoryID    string `json:"firstPurchaseCategoryId"`
	FirstPurchaseCategoryName  string `json:"firstPurchaseCategoryName"`
	SecondPurchaseCategoryID   string `json:"secondPurchaseCategoryId"`
	SecondPurchaseCategoryName string `json:"secondPurchaseCategoryName"`
	ThirdPurchaseCategoryID    string `json:"thirdPurchaseCategoryId"`
	ThirdPurchaseCategoryName  string `json:"thirdPurchaseCategoryName"`
	GoodsGroupCategoryID       string `json:"goodsGroupCategoryId"`
	GoodsGroupCategoryName     string `json:"goodsGroupCategoryName"`
}

type CommodityInfo

type CommodityInfo struct {
	CommodityName  string       `json:"commodityName"`
	CommodityCode  string       `json:"commodityCode"`
	SupplierCode   string       `json:"supplierCode"`
	SupplierName   string       `json:"supplierName"`
	PictureURL     []PictureURL `json:"pictureUrl"`
	SellingPoint   string       `json:"sellingPoint"`
	MonthSales     interface{}  `json:"monthSales"`
	SnPrice        string       `json:"snPrice"`
	CommodityPrice string       `json:"commodityPrice"`
	CommodityType  int64        `json:"commodityType"`
	PriceType      string       `json:"priceType"`
	PriceTypeCode  int64        `json:"priceTypeCode"`
	Baoyou         int64        `json:"baoyou"`
	Rate           string       `json:"rate"`
	SaleStatus     int64        `json:"saleStatus"`
	ProductURL     *string      `json:"productUrl,omitempty"`
}

type CouponInfo

type CouponInfo struct {
	CouponURL           string      `json:"couponUrl"`
	ActivityID          string      `json:"activityId"`
	ActivitySecretKey   string      `json:"activitySecretKey"`
	CouponValue         string      `json:"couponValue"`
	CouponCount         *string     `json:"couponCount"`
	CouponStartTime     string      `json:"couponStartTime"`
	CouponEndTime       string      `json:"couponEndTime"`
	StartTime           *string     `json:"startTime"`
	EndTime             *string     `json:"endTime"`
	BounsLimit          string      `json:"bounsLimit"`
	ActivityDescription string      `json:"activityDescription"`
	AfterCouponPrice    interface{} `json:"afterCouponPrice"`
}

type MonthSales

type MonthSales struct {
	Integer *int64
	String  *string
}

type OrderActivity

type OrderActivity struct {
	ActivityRuleList    []ActivityRuleList `json:"activityRuleList"`
	ActivityDescription string             `json:"activityDescription"`
}

type PGInfo

type PGInfo struct {
	PGNum            string `json:"pgNum"`
	PGPrice          string `json:"pgPrice"`
	MinOrderQuantity string `json:"minOrderQuantity"`
	PGURL            string `json:"pgUrl"`
	PGActionID       string `json:"pgActionId"`
}

type PictureURL

type PictureURL struct {
	PicURL     string `json:"picUrl"`
	LocationID int64  `json:"locationId"`
}

type QueryRecommendcommodity

type QueryRecommendcommodity struct {
	OrderActivity *OrderActivity `json:"orderActivity"`
	CommodityInfo CommodityInfo  `json:"commodityInfo"`
	PGInfo        PGInfo         `json:"pgInfo"`
	CategoryInfo  CategoryInfo   `json:"categoryInfo"`
	CouponInfo    CouponInfo     `json:"couponInfo"`
	AdvanceSale   AdvanceSale    `json:"advanceSale"`
	IsHaveData    *string        `json:"isHaveData,omitempty"`
}

type Response

type Response struct {
	response2.TopResponse
	SnResponseContent SnResponseContent `json:"sn_responseContent"`
}

suning.netalliance.recommendcommodity.query 小编推荐接口

func (*Response) WrapResult

func (t *Response) WrapResult(result string)

解析输出结果

type SnBody

type SnBody struct {
	QueryRecommendcommodity []QueryRecommendcommodity `json:"queryRecommendcommodity"`
}

type SnError

type SnError struct {
	ErrorMsg  string `json:"error_msg"`
	ErrorCode string `json:"error_code"`
}

type SnResponseContent

type SnResponseContent struct {
	SnBody  SnBody   `json:"sn_body"`
	SnError *SnError `json:"sn_error"`
}

Jump to

Keyboard shortcuts

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