product

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package product 千川商品相关API models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableGetRequest

type AvailableGetRequest struct {
	// AdvertiserID 千川广告主账户id
	AdvertiserID uint64 `json:"advertiser_id,omitempty"`
	// Filtering 过滤器
	Filtering *GetFiltering `json:"filtering,omitempty"`
	// Page 页码.默认值: 1
	Page int `json:"page,omitempty"`
	// PageSize 页面数据量.默认值: 10, 最大值:100
	PageSize int `json:"page_size,omitempty"`
}

AvailableGetRequest 获取可投商品列表 API Request

func (AvailableGetRequest) Encode

func (r AvailableGetRequest) Encode() string

Encode implement GetRequest interface

type AvailableGetResponse

type AvailableGetResponse struct {
	model.BaseResponse
	// Data json返回值
	Data *AvailableGetResponseData `json:"data,omitempty"`
}

AvailableGetResponse 获取可投商品列表 API Response

type AvailableGetResponseData

type AvailableGetResponseData struct {
	// PageInfo 分页信息
	PageInfo model.PageInfo `json:"page_info,omitempty"`
	// ProductList 商品列表
	ProductList []Product `json:"product_list,omitempty"`
}

AvailalbeGetResponseData json返回值

type GetFiltering

type GetFiltering struct {
	// ProductIDs 根据商品ID列表筛选,长度:1-100
	ProductIDs []uint64 `json:"product_ids,omitempty"`
	// ProductName 根据商品名称筛选,长度120字符以内,中文算两个字符。
	ProductName string `json:"product_name,omitempty"`
}

GetFiltering 过滤器

type Product

type Product struct {
	// ID 商品id
	ID uint64 `json:"id,omitempty"`
	// Img 主图
	Img string `json:"img,omitempty"`
	// Inventory 库存
	Inventory int64 `json:"inventory,omitempty"`
	// Name 商品名称
	Name string `json:"name,omitempty"`
	// ProductRate 好评率
	ProductRate float64 `json:"product_rate,omitempty"`
	// SaleTime 上架时间
	SaleTime string `json:"sale_time,omitempty"`
	// CategoryName 分类
	CategoryName string `json:"category_name,omitempty"`
	// DiscountPrice 售价,单位:元,已废弃
	DiscountPrice float64 `json:"discount_price,omitempty"`
	// MarketPrice 原价,单位为元
	MarketPrice float64 `json:"market_price,omitempty"`
	// DiscountLowerPrice 折扣价区间最小值,单位为元
	DiscountLowerPrice float64 `json:"discount_lower_price,omitempty"`
	// DiscountHigherPrice 折扣价区间最大值,单位为元
	DiscountHigherPrice float64 `json:"discount_higher_price,omitempty"`
}

Product 商品

Jump to

Keyboard shortcuts

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