Documentation ¶
Index ¶
- type CreateActivityIDResponse
- type Search
- func (cli *Search) ImageSearch(ctx context.Context, filename string) (*CreateActivityIDResponse, error)
- func (cli *Search) SiteSearch(ctx context.Context, req *SiteSearchRequest) (*SiteSearchResponse, error)
- func (cli *Search) SubmitPages(ctx context.Context, req *SubmitPagesRequest) (*request.CommonError, error)
- type SiteSearchRequest
- type SiteSearchResponse
- type SubmitPage
- type SubmitPagesRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateActivityIDResponse ¶
type CreateActivityIDResponse struct { request.CommonError // 生成的小程序 URL Link URLLink string `json:"url_link"` }
type Search ¶
type Search struct {
// contains filtered or unexported fields
}
func (*Search) ImageSearch ¶
func (cli *Search) ImageSearch(ctx context.Context, filename string) (*CreateActivityIDResponse, error)
本接口提供基于小程序的站内搜商品图片搜索能力
func (*Search) SiteSearch ¶
func (cli *Search) SiteSearch(ctx context.Context, req *SiteSearchRequest) (*SiteSearchResponse, error)
小程序内部搜索API提供针对页面的查询能力,小程序开发者输入搜索词后,将返回自身小程序和搜索词相关的页面。因此,利用该接口,开发者可以查看指定内容的页面被微信平台的收录情况;同时,该接口也可供开发者在小程序内应用,给小程序用户提供搜索能力。
func (*Search) SubmitPages ¶
func (cli *Search) SubmitPages(ctx context.Context, req *SubmitPagesRequest) (*request.CommonError, error)
小程序开发者可以通过本接口提交小程序页面url及参数信息(不要推送webview页面),让微信可以更及时的收录到小程序的页面信息,开发者提交的页面信息将可能被用于小程序搜索结果展示。
type SiteSearchRequest ¶
type SiteSearchResponse ¶
type SiteSearchResponse struct { request.CommonError // 生成的小程序 URL Link URLLink string `json:"url_link"` }
type SubmitPage ¶
type SubmitPagesRequest ¶
type SubmitPagesRequest struct {
Pages []SubmitPage `json:"pages"`
}
Click to show internal directories.
Click to hide internal directories.