Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SellerCategoryBasicDTO ¶
type SellerCategoryBasicDTO struct { /** * 前台类目 id,即类目编码 */ VendorSellerCategoryId string `json:"vendorSellerCategoryId"` /** * 类目名称 */ CategoryName string `json:"categoryName"` /** * 类目排序 rank > 0 */ Rank int32 `json:"rank"` /** * 类目层级 1:一级类目 2:二级类目 */ Level int32 `json:"level"` /** * 类目类型 10:普通类目 30:餐具类目 品牌默认填 10 即可 不为空 餐具类目只能放餐具商品 餐具类目只能有一个 餐具类目只能为一级类目 */ Type int32 `json:"type"` /** * 永久置顶开关 false:关闭 true:开启 top 是永久置顶,topTime是分时置顶,两个可以单独配置 top 优先级高,top = true 时即永久置顶,top = false 是根据 topTime 判定类目是否置顶 */ Top bool `json:"top"` /** * 分时置顶时间 */ TopTime []TimeDTO `json:"topTime"` /** * 分时展示时间 */ ShowTime []TimeDTO `json:"showTime"` /** * 类目描述 */ Description string `json:"description"` /** * 类目标签 RECOMMEND(-95, "本周推荐"), SPECIAL_OFFER(-94, "本店特供") 星巴克品牌定制,其他品牌不填 */ TagList []int32 `json:"tagList"` /** * 父类目 id level == 2 时必填 parentVendorSellerCategoryId != vendorSellerCategoryId,parentVendorSellerCategoryId 必须存在于一级类目 id 中,一级类目没有父类目 id */ ParentVendorSellerCategoryId string `json:"parentVendorSellerCategoryId"` /** * 类目是否在页面隐藏 */ Hide bool `json:"hide"` }
type ShopmenuCreateRequest ¶
type ShopmenuCreateRequest struct { VendorShopMenuDTO `json:"vendorShopMenu"` }VendorShopMenu
func (*ShopmenuCreateRequest) DoInvoke ¶
func (req *ShopmenuCreateRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*ShopmenuCreateResponse, error)
type ShopmenuCreateResponse ¶
type ShopmenuCreateResponse struct { /** * 成功:true,失败:false */ }
func (*ShopmenuCreateResponse) IsSuccess ¶
func (response *ShopmenuCreateResponse) IsSuccess() bool
type TimeDTO ¶
type TimeDTO struct { /** * 一周的第几天,eg: 1:星期一 2:星期二 ...以此类推 不为空,只能为 1~7 */ DayOfWeek int32 `json:"dayOfWeek"` /** * 时间段 */ Range []TimeRangeDTO `json:"range"` }
type TimeRangeDTO ¶
type VendorSellerCategoryDTO ¶
type VendorSellerCategoryDTO struct { /** * 前台类目基本信息 */ SellerCategoryBasic SellerCategoryBasicDTO `json:"sellerCategoryBasic"` /** * 商品 SPU 列表,必存在于商品池中 SellerCategoryBasicDTO . level == 2 时必填 最多 50 个 */ VendorShopProductSimpleList []VendorShopProductSimpleDTO `json:"vendorShopProductSimpleList"` }
type VendorShopMenuDTO ¶
type VendorShopMenuDTO struct { /** * 门店Id */ VendorShopId string `json:"vendorShopId"` /** * 门店前台类目列表 最多 50 个 */ VendorSellerCategoryList []VendorSellerCategoryDTO `json:"vendorSellerCategoryList"` /** * 是否更新商品的门店上下架状态 默认为true */ UpdateShelfStatus bool `json:"updateShelfStatus"` }
Click to show internal directories.
Click to hide internal directories.