Documentation ¶
Overview ¶
Package product 商品相关
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetByPoiIDsRequest ¶
type GetByPoiIDsRequest struct { // LocalAccountID 本地推广告账户ID LocalAccountID uint64 `json:"local_account_id,omitempty"` // PoiIDs 门店ID列表,这里需填入项目所推广的门店 PoiIDs []uint64 `json:"poi_ids,omitempty"` }
GetByPoiIDsRequest 根据门店ID查询门店下商品ID API Request
func (GetByPoiIDsRequest) Encode ¶
func (r GetByPoiIDsRequest) Encode() string
Encode implements GetRequest interface
type GetByPoiIDsResponse ¶
type GetByPoiIDsResponse struct { model.BaseResponse Data struct { // ProductIDs 门店下商品ID列表 ProductIDs []uint64 `json:"product_ids,omitempty"` } `json:"data,omitempty"` }
GetByPoiIDsResponse 根据门店ID查询门店下商品ID API Response
type GetFilter ¶
type GetFilter struct { // SearchKeyWord 根据商品名称/商品ID搜索(商品名称支持模糊搜索,商品ID支持精确搜索) SearchKeyWord string `json:"search_key_word,omitempty"` }
type GetRequest ¶
type GetRequest struct { // LocalAccountID 本地推广告主ID LocalAccountID uint64 `json:"local_account_id,omitempty"` // LocalDeliveryScene 推广目的,允许值: // CONTENT_HEAT 内容加热 // EXTERNAL 销售线索收集 // POI_RECOMMEND 门店引流 // PRODUCT_PAY 团购成交 LocalDeliveryScene local.LocalDeliveryScene `json:"local_delivery_scene,omitempty"` // Filtering 过滤器 Filtering *GetFilter `json:"filtering,omitempty"` // Page 页码,默认值1 Page int `json:"page,omitempty"` // PageSize 页面大小,默认值20,最大值100 PageSize int `json:"page_size,omitempty"` }
GetRequest 获取可投商品列表 API Request
func (GetRequest) Encode ¶
func (r GetRequest) Encode() string
Encode implements GetRequest interface
type GetResponse ¶
type GetResponse struct { model.BaseResponse Data *GetResult `json:"data,omitempty"` }
GetResponse 获取可投商品列表 API Response
type Product ¶
type Product struct { // ProductID 商品id ProductID uint64 `json:"product_id,omitempty"` // ProductName 商品名称 ProductName string `json:"product_name,omitempty"` // ProductImageURL 商品图片 ProductImageURL string `json:"product_image_url,omitempty"` // Price 商品价格,单位元 Price float64 `json:"price,omitempty"` // ProductPics 商品头图,有效期2h ProductPics []string `json:"product_pics,omitempty"` // ApplicablePoiNum 商品适用门店数 ApplicablePoiNum int `json:"applicable_poi_num,omitempty"` }
Product 商品信息
Click to show internal directories.
Click to hide internal directories.