customrulecreate

package
v0.0.0-...-905ac7b Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.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 CustomruleCreateRequest

type CustomruleCreateRequest struct {
	/**
	 *  商品 SPU 客制化规则列表
	 */
	VendorSkuCustomRuleList []VendorSkuCustomRuleDTO `json:"vendorSkuCustomRuleList"`
}

func (*CustomruleCreateRequest) DoInvoke

func (req *CustomruleCreateRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*CustomruleCreateResponse, error)

type CustomruleCreateResponse

type CustomruleCreateResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	/**
	 * key:vendorSpuId-vendorSkuId value:同步结果,成功返回 “成功”,失败则返回相应的异常信息
	 */
	Data    ResultData `json:"data"`
	TraceId string     `json:"traceId"`
}

func (*CustomruleCreateResponse) IsSuccess

func (response *CustomruleCreateResponse) IsSuccess() bool

type ResultData

type ResultData struct {
}

type SkuCustomRuleBasicDTO

type SkuCustomRuleBasicDTO struct {
	/**
	 *  规则类型: 10:配料组客制化规则 20:配料客制化规则
	 */
	RuleType int32 `json:"ruleType"`
	/**
	 *  配料组编码 ruleType == 10 时必填
	 */
	GroupCode string `json:"groupCode"`
	/**
	 *  配料编码 ruleType == 20 时必填
	 */
	ItemCode string `json:"itemCode"`
	/**
	 *  是否必选 true:是 false:否
	 */
	MustSelect bool `json:"mustSelect"`
	/**
	 *  是否默认选中 true:是 false:否 默认 false ruleType == 20 时必填 若 mustSelect == true,则需保证 defaultSelect == true
	 */
	DefaultSelect bool `json:"defaultSelect"`
	/**
	 *  属性组是否折叠 true:折叠 false:不折叠 默认 false ruleType == 10 时必填
	 */
	Fold bool `json:"fold"`
	/**
	 *  属性组 or 属性值展示排序 不为空,rank > 0
	 */
	Rank int32 `json:"rank"`
	/**
	 *  最小选择数,默认 1 ruleType == 20 时必填 不为空,0 <= minChoice <= maxChoice
	 */
	MinChoice int32 `json:"minChoice"`
	/**
	 *  最大选择数,默认 1 ruleType == 20 时必填 maxChoice >= minChoice
	 */
	MaxChoice int32 `json:"maxChoice"`
	/**
	 *  配料 or 配料组是否在页面隐藏 true:是 false:否
	 */
	Hide bool `json:"hide"`
	/**
	 *  是否支持换购 true:是 false:否 星巴克品牌定制,其他品牌设为 false
	 */
	Exchange bool `json:"exchange"`
	/**
	 *  最大免费数,默认 0
	 */
	MaxFreeNum int32 `json:"maxFreeNum"`
	/**
	 *  默认选中数,默认 0
	 */
	DefaultSelectNum int32 `json:"defaultSelectNum"`
	/**
	 *  每份数量,按份计价用,一般品牌无特殊要求,默认填 1 即可
	 */
	NumOfPortion int32 `json:"numOfPortion"`
}

type VendorSkuCustomRuleDTO

type VendorSkuCustomRuleDTO struct {
	/**
	 *  商品 SPU 编码
	 */
	VendorSpuId string `json:"vendorSpuId"`
	/**
	 *  商品 SKU 编码
	 */
	VendorSkuId string `json:"vendorSkuId"`
	/**
	 *  客制化规则列表
	 */
	SkuCustomRuleBasicList []SkuCustomRuleBasicDTO `json:"skuCustomRuleBasicList"`
	/**
	 *  厂商门店 id 门店商品需要传入
	 */
	VendorShopId string `json:"vendorShopId"`
}

Jump to

Keyboard shortcuts

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