dataoke

package
v0.0.0-...-9bd63dd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Carouse

type Carouse struct {
	TopicID    int    `json:"topicId"`
	TopicName  string `json:"topicName"`
	TopicImage string `json:"topicImage"`
	Link       string `json:"link"`
	SourceType int    `json:"sourceType"`
	ActivityID string `json:"activityId"`
}

type CarouseListResp

type CarouseListResp struct {
	RequestID string    `json:"requestId"`
	Time      int64     `json:"time"`
	Code      int       `json:"code"`
	Msg       string    `json:"msg"`
	Data      []Carouse `json:"data"`
}

type Categories

type Categories struct {
	Cid           int             `json:"cid"`
	Cname         string          `json:"cname"`
	Cpic          string          `json:"cpic"`
	Subcategories []Subcategories `json:"subcategories"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(appKey, appSecret string, opts ...ClientOption) *Client

func (*Client) CarouseList

func (c *Client) CarouseList(params map[string]string) (*CarouseListResp, error)

轮播图

func (*Client) GenerateSign

func (c *Client) GenerateSign(params map[string]string) map[string]string

appKey appsecret nonce:一个6位的随机数 timer:毫秒级时间戳

func (*Client) Get

func (c *Client) Get(url string, params map[string]string) (string, error)

func (*Client) GetDtkSearchGoods

func (c *Client) GetDtkSearchGoods(params map[string]string) (string, error)

大淘客搜索

func (*Client) GetGoodsDetails

func (c *Client) GetGoodsDetails(params map[string]string) (string, error)

单品详情

func (*Client) GetGoodsList

func (c *Client) GetGoodsList(params map[string]string) (string, error)

商品列表

func (c *Client) GetPrivilegeLink(params map[string]string) (string, error)

高效转链

func (*Client) GetRankingList

func (c *Client) GetRankingList(params map[string]string) (string, error)

热搜记录

func (*Client) GetSuperCategory

func (c *Client) GetSuperCategory(params map[string]string) (*GetSuperCategoryResp, error)

超级分类

func (*Client) GetTbService

func (c *Client) GetTbService(params map[string]string) (string, error)

联盟搜索

func (*Client) GetTop100

func (c *Client) GetTop100(params map[string]string) (string, error)

热搜记录

func (*Client) JdGoodsSearch

func (c *Client) JdGoodsSearch(params map[string]string) (string, error)

京东联盟搜索

func (*Client) ListSuperGoods

func (c *Client) ListSuperGoods(params map[string]string) (string, error)

超级搜索

func (*Client) PddGoodsSearch

func (c *Client) PddGoodsSearch(params map[string]string) (string, error)

拼多多联盟搜索

func (*Client) SearchSuggestion

func (c *Client) SearchSuggestion(params map[string]string) (string, error)

联想词

func (*Client) VIPGoodsSearch

func (c *Client) VIPGoodsSearch(params map[string]string) (string, error)

唯品会联盟搜索

type ClientOption

type ClientOption func(*clientOptions)

func WithVersion

func WithVersion(v string) ClientOption

type GetSuperCategoryResp

type GetSuperCategoryResp struct {
	Cache     bool         `json:"cache"`
	Code      int          `json:"code"`
	Data      []Categories `json:"data"`
	Msg       string       `json:"msg"`
	RequestID string       `json:"requestId"`
	Time      int64        `json:"time"`
}

type Subcategories

type Subcategories struct {
	Scpic    string `json:"scpic"`
	Subcid   int    `json:"subcid"`
	Subcname string `json:"subcname"`
}

Jump to

Keyboard shortcuts

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